Setup notes
Make sure the following is installed:
- python
- pip
- virtualenv
Create a virtual environment:
1 | eg: virtualenv env |
Make sure django is installed:
1 | pip install django |
Scaffolding notes:
Create a project:
1 | python-admin startproject [projectname] |
Optionally create an app
1 2 3 | cd [projectname] python-admin startapp [appname] |
Note! Make sure you cd into the project folder so that your app is in the same folder level as manage.py
Also remember to:
Add [appname] to INSTALLED_APPS in settings.py