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”):
- cd <dev root>
- cd envs
- virtualenv DjangoTest (create the virtual environment)
- source DjangoTest/bin/activate (start using the virtual environment)
- pip install Django