you add your app name after the run makemigration and migrate ?if your app name is a blog then you run makemigration blog and migrate blog
Τη Τετάρτη, 27 Ιανουαρίου 2016 - 9:21:16 μ.μ. UTC+2, ο χρήστης ofeyofey έγραψε:
-- Τη Τετάρτη, 27 Ιανουαρίου 2016 - 9:21:16 μ.μ. UTC+2, ο χρήστης ofeyofey έγραψε:
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/287b857b-3097-49eb-a54a-d71bd04058c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment