Skip to main content

Diigo Home

Usefull tips to start a new project with Django - Keep Da Link - The Diigo Meta page

kdl.nobugware.com/...tart-a-new-project-with-Django - Cached - Annotated View

Olifante *'s personal annotations on this page

olifante
Olifante bookmarked on 2009-01-21 django tips python webdev programming advice creation project

"Useful tips to start a new project with Django"

  • Only use null=True for non-string fields such as integers, booleans and dates: Avoid using null on string-based fields such as CharField and TextField unless you have an excellent reason.
  • Use fixtures to reimport data and test your apps manage.py dumpdata --indent=4 > initial.json and manage.py loaddata initial, don't spend time to reinsert data everyday with the admin
  • Put a assert False in your code (in view) it will act as a breakpoint
  • Create a settings-dev.py and a settings-production.py then link settings.py to the one you need

This link has been bookmarked by 10 people . It was first bookmarked on 17 Jul 2008, by Julien Bornstein.