[Django]-How to start a django cms project

7👍

✅

django-cms uses South for database migrations. Models handled by South are not synced to the database using syncdb. You have to use manage.py migrate.

Since you don’t have any tables and data from django-cms to migrate, a faster solution would be this process:

  • comment out 'south' in your INSTALLED_APPS
  • run manage.py syncdb (this will create all the tables from django-cms)
  • re-enable south in your INSTALLED_APPS
  • run manage.py migrate --fake

The next time you update django-cms, you can then run manage.py migrate to update your database tables.

1👍

Did you put 'cms' in INSTALLED_APPS in settings.py? Django-CMS furthermore requires also menus, publisher and mptt installed as well as some middleware. This is some nice to read documentation on it!

0👍

In general, if tables are not created there can be some errors in the application itself:
try running Django shell and import a model from the application:

python manage.py shell

>>> from csm import models

and check if you get a traceback.

Hope this can help.

Leave a comment