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.
Also I found it is shorter to leave off the python and use ./manage.py
xxxx. Saves a few keystrokes.
On Thursday, 10 May, 2018 10:04 AM, Mansi Thakkar wrote:
Yes I did the same thing. I run python manage.py makemigrations first
and then python manage.py migrate.
On Wed, May 9, 2018 at 3:23 PM, James Farris <[email protected]
<mailto:[email protected]>> wrote:
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
<[email protected] <mailto:[email protected]>>
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 [email protected]
<mailto:django-users%[email protected]>.
> To post to this group, send email to
[email protected] <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/django-users
<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
<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
<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 [email protected]
<mailto:django-users%[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/django-users
<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
<https://groups.google.com/d/msgid/django-users/A5C5B522-C495-4D7E-8D73-3419F86671A5%40gmail.com>.
For more options, visit https://groups.google.com/d/optout
<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 [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
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
<https://groups.google.com/d/msgid/django-users/CAD4jYPBKt%2BAQ-tZt6Fqo_s8v7ym3S81_hxqtfeNsSLOH8viu7A%40mail.gmail.com?utm_medium=email&utm_source=footer>.
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 [email protected].
To post to this group, send email to [email protected].
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/da97c3c7-69ee-ae12-b12c-2b73d63ef6a4%40gmail.com.
For more options, visit https://groups.google.com/d/optout.