check this one
try to run the console
$ python manage.py sqlsequencereset your_app_name
it will give you the psql queries. run those queries on PSQL console and then try to run loaddata.
check below link
With Regards,
Irfan khan
On Sat, 24 Apr 2021 at 00:23, 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/CALKGVip4zW6NTjTRGrg4d8OYEwjoAC7Q4FzqF6FDmAGTvNXNfQ%40mail.gmail.com.
No comments:
Post a Comment