21👍
✅
Try
syncdb --all
as I have the same problem and –all just works.
I found this solution here https://github.com/divio/django-cms/issues/1343
15👍
This might help others going through the same issue.
Since your database is to be created now and there are no migrations needed, after doing what Ahmad mentioned, also do a fake migration so south will mark all migration scripts as already run. In short, run these.
syncdb --all
migrate --fake
Please note that if you already have data in your database you shouldn’t use syncdb –all.
6👍
$python manage.py syncdb --migrate
this migrates what has to be migrated
worked for me (django 1.4)
- Error while accessing sqlite3 shell from django application
- Calling a function in Django after saving a model
- Django and postgresql testing schema
- Django Prefetch with custom queryset which uses managers method
1👍
Another alternative is mark that first migration as done:
./manage.py migrate dbtemplates --fake 0001
It seems to be that you already have in your database the schema that you want to create.
Source:stackexchange.com