sei-ec-remote / project-4-issues

Open an issue to receive help on project 4
0 stars 0 forks source link

Deployment not rendering items #242

Closed jawknee59 closed 1 year ago

jawknee59 commented 1 year ago

What stack are you using?

(ex: MERN(mongoose + react), DR(django + react), PEN, etc.)

django and python

What's the problem you're trying to solve?

deployed app not rendering items

Post any code you think might be relevant (one fenced block per file)

(https://jawcommerce.onrender.com/)

If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?

Screenshot 2023-03-14 at 10 09 09 AM

What is your best guess as to the source of the problem?

bit.io database?

What things have you already tried to solve the problem?

Paste a link to your repository here https://jawcommerce.onrender.com/

asands94 commented 1 year ago

Did you do a seed file?

jawknee59 commented 1 year ago

I created the items on localhost:8000/admin portal

asands94 commented 1 year ago

Your localhost admin portal will only show up on your development environment, it won't show up once you're deployed

jawknee59 commented 1 year ago

I would need to make a seed file for it to render?

asands94 commented 1 year ago

Actually in your .env file, you can change your DATABASE_URL to your bit.io connection string and that should work

jawknee59 commented 1 year ago

Tried that and still not rendering, do I need to do anything in the settings.py?

asands94 commented 1 year ago

You'll just have to create the superuser again now that you added the DATABASE_URL to your env and make some stuff there again and then you should see it on your website

jawknee59 commented 1 year ago

I should be able to see items in the bit.io database?

asands94 commented 1 year ago

Yes. After you recreate your superuser and go to the admin portal, you'll need to add things to your database again that will then showup in your bit.io database