Skip to content

Instantly share code, notes, and snippets.

@blzaugg
Created October 26, 2013 17:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blzaugg/7172561 to your computer and use it in GitHub Desktop.
Save blzaugg/7172561 to your computer and use it in GitHub Desktop.

Create a new Django Project

$ django-admin.py startproject <name>

Run Django Dev Server

$ python manage.py runserver

Create a new Django application

$ python manage.py startapp <appname>
  • Add new <appname> item to INSTALLED_APPS tuple in the project's settings.py.
  • Add new item to the urlpatterns tuple in the project's urls.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.

Misc. Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment