- If you are new to Django, check out the official Django tutorial at https://docs.djangoproject.com/en/dev/intro/tutorial01/ and then return to this recipe.
- Create a Python virtualenv (http://www.virtualenv.org/en/latest/) to create an isolated Python environment to use with the web application you will build in this recipe and the next. Then, activate the environment as follows:
-
- Use the following commands in Linux:
$ cd ~/virtualenvs/ $ virtualenv --no-site-packages chp09-env $ source chp09-env/bin/activate
-
- Type the following commands in Windows (for steps to install virtualenv on Windows, refer to https://zignar.net/2012/06/17/install-python-on-windows/):
cd c:\virtualenvs C:\Python27\Scripts\virtualenv.exe ...