Good day Jim,
My process from beginning includes:
1. I reset the database: rm -f db.sqlite3
2. python manage.py migrate
3. In django admin platform: I added all the books information from the fixtures.json and tied it to the user which is admin
4. Implemented a new fixtures.json
5. ran python manage.py makemigrations
6. ran python manage.py migrate
7. git add .
8. git commit -m "[updated information here]"
9. git push origin master
10. git push heroku master
11. heroku run python manage.py migrate
12. heroku run python manage.py loaddata books/fixtures.json (This is where i get the error)
BR,
Ejike Chiboka
08022224537; 08166516400
On Sat, Apr 24, 2021 at 9:38 PM Jim Illback <subaru_87@hotmail.com> wrote:
I didn't see a "createsuperuser" command. Was that done or is it part of your fixtures.json load?--
Jim
On Apr 24, 2021, at 8:04 AM, Ejike Enyinnaya <ejike.chiboka@gmail.com> wrote:
Good day Kasper,
Thanks for your response.
The git commands I put in the email was just to give a summary of what I had done and not the full details, that way my email is not too long and cumbersome to read.
I can assure you on my CLI, I ran the proper git commands putting in the right information and not leaving it empty.
BR,Ejike Chiboka08022224537; 08166516400
On Fri, Apr 23, 2021 at 7:53 PM Kasper Laudrup <laudrup@stacktrace.dk> wrote:
On 23/04/2021 20.41, Ejike Enyinnaya wrote:
> I did a git add ., git commit -m and git push heroku master
Not sure if it's related, but it's possible: This is not how you should
use revision control (git).
You should keep your source files under revision control, not just
blindly add everything and committing it with an empty commit message.
Then you might as well not use any kind of revision control at all.
It might be slightly off topic and not related to your problem, but on
the other hand, there's a huge chance that you have added a bunch of
stuff like your database file and you have zero way of tracking what you
have actually changed.
Not sure if this has every worked for you, but if you have a similar
problem and it used to work and then suddenly didn't, using revision
control like git can be an enormous help.
Do yourself a huge favor and learn how to use revision control.
Kind regards,
Kasper Laudrup
--
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/4ebee094-cc84-ce01-ddfd-11ca231960d6%40stacktrace.dk.
--
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/CADe59C-Sau_rAhxLJQKBmMcHDMxq_Uc12aTVo%2BRL4YoSdOf7aw%40mail.gmail.com.
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/F91210CE-9D66-4C64-A1A0-1C6EA001DD67%40hotmail.com.
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/CADe59C9qFczEWktkZ%3DwRnc%3Djpkx4QA9ignYmqx2hy%2B86Omj_4w%40mail.gmail.com.
No comments:
Post a Comment