Create your models: Synchronize your database

  1. Topics
  2. Create your models

Once you’ve got the model designed, add “Blog.postings” to settings.py. Add another line to the list of INSTALLED_APPS:

'INSTALLED_APPS = (

'django.contrib.auth',

'django.contrib.contenttypes',

'django.contrib.sessions',

'django.contrib.sites',

'django.contrib.admin',

'Blog.postings',

)

Now that Django knows about your app, go to the command line and “python manage.py syncdb”. Django will create the necessary database tables for you.

$ python manage.py syncdb

Creating table postings_author

Creating table postings_topic

Creating table postings_post

Installing index for postings.Post model

  1. Topics
  2. Create your models