Friday, February 10, 2012

Checklist for creating models in Django

1. Create an app
2. Add model class to models.py in the app
3. Add the app to installed apps
4. Validate your model
python manage.py validate
5. Check the SQL which will be generated
python manage.py sqlall app_name
6. Create the tables in the db
python manage.py syncdb

No comments:

Post a Comment