RaVeR76 / The-Kicks-Fix

Are you tired of searching for your kicks online? Well, look no further my friend ........ The Kicks Fix has you covered :)
1 stars 2 forks source link

Loading My DB.JSON Caused An Error #33

Closed RaVeR76 closed 2 years ago

RaVeR76 commented 2 years ago

As I was getting ready to deploy to Heroku, I followed the tutorials and got to the python3 manage.py loaddata db.json stage, were I was loading my database data into postgres for working on Heroku. I was nervous enough about getting this whole deployment process right, even if i had done it a few times before but I had seen some deployment horror stories in Slack. Anyway I was at this stage and straight up it threw an error up ..... defibrillator please !!!

RaVeR76 commented 2 years ago

I kept calm and checked through our Slack community and found the answer, it was because I had made a few orders using the Countries full name whereas I had changed it use CountryField which uses the two letter codes for orders. I simple went in and deleted the majority of my orders starting with the oldest and then tried this step again .... Hey Presto, it worked !!!