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 man
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
mailto:ejike.chib...@gmail.com>> wrote:
Good day Kasper,
Thanks for your response.
The git commands I put in the email was just to give a summary
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 informat
Good day Kasper,
Hi Kasper,
Thanks for your response. The "git" commands I put in the email was not
just to give any one an idea of what commands I had run but on my CLI, I
ran the proper git commands with the proper messages and not leaving it
empty.
BR,
Ejike Chiboka
0804537; 08166516400
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
https://stackoverflow.com/questions/64251547/django-resync-autoincrementing-pk-with-restored
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 a
Please explain all your steps clearly.
How are you creating fixture.json, Are you taking all data dump or only
book model dump ??
On Sat, 24 Apr 2021 at 00:12, Ejike Enyinnaya
wrote:
> Hi Guys,
>
> This is the error I am getting:
>
> (first_django_app) ➜ first_django_app git:(master) heroku
Hi Guys,
This is the error I am getting:
(first_django_app) ➜ first_django_app git:(master) heroku run python
manage.py loaddata books/fixtures.json
Running python manage.py loaddata books/fixtures.json on ⬢ gotbooksapp...
up, run.6617 (Free)
Traceback (most recent call last):
File
"/app/.her
Hi,
You can see IntegrityError: fixtures you are updating trying to find user
with user_id=1 which are not available in your db. Try to create one user
and migrate again. Or if the App is still in the development stage. Delete
DB and migrate again. It may work.
Thank you
Regards
Sujay
On Fri,
kindly shere your code
On Fri, Apr 23, 2021 at 5:56 PM ejike@gmail.com
wrote:
> Good day All,
>
> I am trying to deploy my django app to heroku but i keep getting this
> error in the screenshot attached.
>
> Please can anyone assist in me in finding a solution to this and where the
> iss
10 matches
Mail list logo