1
If you are using Django 1.9, syncdb has been removed, see the release:
https://docs.djangoproject.com/en/1.9/releases/1.9/#Features-Removed-in-1-9
To run migrations, you must use makemigrations and migrate.
Created or changed table:
python manage.py makemigrations
#Irá criar arquivos de migrações com as coisas que você fez
Perform migrations:
python manage.py migrate
#Irá aplicar as alterações no banco.
Correct. I’m using Django 1.9! I didn’t know this "detail"
– alexjosesilva
I must use this command in visual studio ??
– alexjosesilva
Good guy, particularly I don’t like windows. But the root of the problem was this. Starting from Django 1.7, the camandos to make and execute the migrations are these two. There was syncdb until 1.8 Did you try to run these commands? Gave any problem?
– Puam Dias
executed yes...
– alexjosesilva
I found your Solution but I don’t know Where should I type the Commands, Please guide me: python Manage. py makemigrations # will create Migration files with the Things you’ve done Run Migration: python Manage. py migrate
– Sun