python - Issues with creating table via migration -


i have created model , when try create table via migration using python manage.py migrate app_name , in response

- nothing migrate.  - loading initial data app_name. installed 3 object(s) 1 fixture(s) 

but table not created , simple process don't know why table not created. db used postgresql , have used syncdb doesn't work .

it seems haven't created migrations. need create them, before can run.

for app's initial first migration run:

./manage.py schemamigration your_app --initial 

for following migrations run (provided want create automatic migration):

./manage.py schemamigration your_app --auto 

you can see more examples in tutorial.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -