Saturday, May 30, 2020

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

Hi Matt,

I followed Nomeh's advice (the last email response to my question) which was to do this within the Pycharm console

delete the migrations again, then run this to reset the tracking:

so:

... py manage.py migrate --fake [app_Name] zero

then:
... py makemigrations [app_Name]
... py migrate [app_Name]  

That worked for me. 

Hope this helps!

Iain

On Sat, 30 May 2020 at 00:16, Matt D <meatloafdaddy123@gmail.com> wrote:
Hello Iain,
 I am also working on Mosh's python tutorial and I'm having the same problems that you expressed in this chat. Did you delete the migrations through pycharm or through your computer to make it work?
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5cf0bf92-5773-43a3-a273-4ccfdb61734c%40googlegroups.com.


--
Iain Stewart
2b Priestfield Road
EDINBURGH EH16 5HH SCOTLAND
iain.a.stewart@gmail.com

telephone: 0044 131 662 9123
mobile: 0044 7728 752824



--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAAU1KRgLG0ejUyE4P3CXg88ZWmCSRO%3DcD5aBbbKa%2BqbjqtjGA%40mail.gmail.com.

No comments:

Post a Comment