Install Django

Official procedure to install Django in Manazag Team

Ubuntu

Install PIP and update itself
sudo apt-get install python-pip
sudo pip install -U pip

Install latest Django version
sudo pip install Django

or upgrade to latest Django version
sudo pip install Django --upgrade

or install a specific Django version
sudo pip install Django==1.6.2

Tested on:

  • Ubuntu
    • 12.04

Start new project

Official procedure to start a new project in Manazag Team

  1. create a repo on bitbucket
  2. follow bitbucket procedure to create a new project from scratch
    1. up to first commit of README.md file
  3. go to wiki related to bitbucket new project
  4. clone wiki into repo
  5. commit

 

README.md should contain only generic info

source code should be placed under src folder

wiki should be placed under wiki folder

New Django 1.3.1 project on DreamHost

Goal

install django in subdomain (eg. subdoamin.domain.com) to start a new project

Step by step guide

Create subdomain

create a subdomain; be careful on user to manage shell account; use passenger;

Create a database

It’s recommended to create a specific database for django

Run the Django Setup wizard


cd carla.manazag.com
/usr/bin/django-admin.py startproject

 

References: