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 yourINSTALLED_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!
- [Django]-Django remove source files and generate pyc files
- [Django]-Use Django-Storages with IAM Instance Profiles
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.
- [Django]-A correct case to use Django signals
- [Django]-Running Gunicorn behind chrooted nginx inside virtualenv
- [Django]-How to find duplicate records based on certain fields in Django
- [Django]-Django 1.8 does not work on CentOs 6.5 server
- [Django]-What is "workon" when using the Django framework?