Scaffolding notes on django

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.