Installing Django

I like running Django within a virtual environment (for installation instructions see easy_install, pip, virtualenv – getting ready for Django)

I use the following folder structure:

<dev root>
— envs  (short for “environments”)
—– Project 1
—– Project 2
—– etc
— Projects (contains all projects, Django and others)
—– Project 1
—– Project 2
—– etc

Note: not all projects need a virtual environment

To start a new Django project (e.g. called “DjangoTest”):

  1. cd <dev root>
  2. cd envs
  3. virtualenv DjangoTest (create the virtual environment)
  4. source DjangoTest/bin/activate (start using the virtual environment)
  5. pip install Django

You may also like...