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
On Aug 17, 2017 11:58 AM, "matejrpls" <matejrpls@gmail.com> wrote:
Hi, I have created a--1. new app in django2. added the new app to to installed apps in settings.py3. created a few models in the app models.pythen, 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
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-users@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 .
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-users@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/CAHtg44DqQvYLea2YfV9GuXxcN6zO-ukt0WGwJAkFoKDk%3D_tPEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment