$ python manage.py syncdb

is for sync of your models to your database.

It looks all of the models in each app in INSTALLED_APPS setting,

checks the database to see whether the appropriate table exist yet or not.

If not, create the tables.

Note that syncdb does not sync changes in models or deletions of models. That is, if you make a change to a model or delete a model, syncdb can’t handle it.

After you created your models, you need to tell django to use it.

To let django know that, you need to add your model name at INSTALLED_APPS in settings.py.

e.g.,

———

INSTALLED_APPS = (
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.sites’,
‘django.contrib.admin’,
‘myblogsite.myblogapp’,
)

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Top Footer