Migrations don't create tables

427 views
Skip to first unread message

matejrpls

unread,
Aug 17, 2017, 2:58:41 PM8/17/17
to Django users
Hi, I have created a 
    1. new app in django
    2. added the new app to to installed apps in settings.py
    3. created a few models in the app models.py

then, I ran python manage.py "makemigrations" and "migrate" however, django did not detect any changes in models and did not create any tables.

What can be the issue?
Thanks

Dylan Reinhold

unread,
Aug 17, 2017, 3:09:34 PM8/17/17
to django...@googlegroups.com
Add the app name to the end of makemigrations.

Seems like the first time an app is added you have the force makemigrations to find it. 

Dylan


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/49b9969b-3ac7-4528-9539-3f6f63d449d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matej Tacer

unread,
Aug 17, 2017, 3:17:23 PM8/17/17
to django...@googlegroups.com
That worked. Thank you, Dylan!

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages