Wednesday, January 27, 2016

Re: Adding a field to a model after initial migration

You should try running it as root.

On Thu, Jan 28, 2016 at 8:29 AM, ofeyofey <shanegibney@gmail.com> wrote:
No problem. Thanks for your help.
Maybe fields can't be added to a model with django.
I will try dropping the table in the DB and see what happens.
Thanks again,

On Wednesday, 27 January 2016 19:21:16 UTC, ofeyofey wrote:
Hi,
I forgot to add a field to a model and wish to add it now.
I added the line to models.py but makemigrations and migrate aren't working now.
Is this possible in Django or do i need to go directly tp the sqlite DB and do it using SQL?
Thanks
Currently following this tutorial https://www.youtube.com/watch?v=g0tvJsUAx7g

--
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/3441fafe-fa06-47e8-b280-31e46d90251a%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/CAPCf-y5PERyLN-kzc%3Da0oV%3DO3a5iOHAnXReC4fCUvT2Vr9Od-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment