Ask coding questions

← Back to all posts
Http wsgi server not able to access replit database.
h
yoursoulsaver

Hi so i was mucking around with http servers but when i ran it with wsgi it could not access the replit database. This is the error i get:

I followed this tutorial:
https://replit.com/talk/learn/How-to-set-up-production-environment-for-your-Flask-project-on-Replit/139169.
And added this line of code:

Why am i getting this error?

Voters
yoursoulsaver
Comments
hotnewtop
yoursoulsaver

Nvm i fixed it.

SixBeeps
yoursoulsaver

@SixBeeps Sorry i had put the import for the repl db at the top i just moved it to after i had imported everything else and it just started working.