Did u run the command of py manage.py makemigrations?
--
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 be absolutely clear, you need to make sure if you made changes to models.py you need to run
$ python manage.py makemigrations
Then
$ python manage.py migrate
-James
Sent from my mobile device
> On May 9, 2018, at 11:26 AM, Pradeep Sharma <pradeeps...@gmail.com> wrote:
>
> Did u run the command of py manage.py makemigrations?
>
> --
> 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/030d5c70-d65a-4707-ba4d-669b7317713c%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...@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/A5C5B522-C495-4D7E-8D73-3419F86671A5%40gmail.com.
Some times you will need to run ./manage.py makemigrations
<app name> and then ./manage.py migrate <app name>.
By including the <app name> it will only makemigration and
migrate for a single application instead of for all of the
applications.
I have found that this helps as I too was having problems with
makemigration and migrate.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD4jYPBKt%2BAQ-tZt6Fqo_s8v7ym3S81_hxqtfeNsSLOH8viu7A%40mail.gmail.com.