I am trying to follow this tutorial , but I am stuck in step 5.
When i do
[~ / Django Projects / netmag $] python manage.py syncdb
The following error message appears:
Unknown command: 'syncdb' Type 'manage.py help' for usage.
and here is the output ./manage.py help does not contain the syncdb . How to add it?
Thanks for any help!
Edit:
When I run migrate, I get this error:
"Error creating new content types. Make sure contenttypes" RuntimeError: Error creating new content types. Please make sure contenttypes migrate before trying to migrate applications individually.
in settings.py:
INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admindocs', 'blog', ]
Edit 2:
If I remove the 'blog', from settings.py:
:~/Django Projects/netmag$ python manage.py migrate blog CommandError: App 'blog' does not have migrations. :~/Django Projects/netmag$ python manage.py makemigrations blog App 'blog' could not be found. Is it in INSTALLED_APPS?
python django django-syncdb
jeff Feb 11 '15 at 0:41 2015-02-11 00:41
source share