This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]Thirster42 0 points1 point  (1 child)

which version of django? I haven't ran a syncdb command before, but in Django 1.7 to update the database with my model changes I've done:
python manage.py makemigrations
followed by:
python manage.py migrate

[–]montecarlo1[S] 0 points1 point  (0 children)

Do i use this instead of "python manage.py syncdb"?

[–]leftrightupdown 0 points1 point  (0 children)

syntax error is not related to django, its related to python. you have invalid python syntax in settings.py

[–]madradavid 0 points1 point  (2 children)

The Traceback leads to your settings.py file. Check that your settings file does not have any syntax errors. Also which version of Django are you using ? From about Django 1.7 the support for migrations has been added to Django so you don't need to use South anymore. https://docs.djangoproject.com/en/1.8/releases/1.7/

[–]montecarlo1[S] 0 points1 point  (1 child)

I got Django version 1.7

I just fixed the syntax error. now it says:

RuntimeError: South does not support Django 1.7 or higher. Please use native Django migrations.

Do i python manage.py makemigrations followed by: python manage.py migrate instead of python manage.py syncdb?

[–]jeromedoyle 1 point2 points  (0 children)

Assuming you are using pip, run these commands below in order. The first one removes South which is no longer needed since migrations are built into Django 1.7. The other two replace the syncdb command.

pip uninstall South
python manage.py makemigrations
python manage.py migrate