Django Notes

At present, prefer Rails over Django, but just in case.

Django Workflow

  1. Create project using django-admin startproject project
  2. Edit settings.py - database parameters, installed apps + anything else (e.g. timezone)
  3. Create database tables - manage.py syncdb
  4. Create models - manage.py startapp appname
  5. Add models for app to appname/models.py
  6. Activate models - manage.py sql(all); syncdb
  7. Desing URLs (views) + templates - generic views are good (CRUD)
  8. Optional - customise admin interface

Django Links

Page tags: django python workflow
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License