$ django-admin.py startproject <name>
$ python manage.py runserver
$ python manage.py startapp <appname>
- Add new
<appname>
item toINSTALLED_APPS
tuple in the project'ssettings.py
. - Add new item to the
urlpatterns
tuple in the project'surls.py
.url(r'^rango/', include('rango.urls')),
- Create a
urls.py
file in the new app directory. Map urls to views (view.py
). - Create views in
view.py
.