Answer the question
In order to leave comments, you need to log in
ClearDB not working after restarting Heroku. What to do?
I am using ClearDB for data storage. But when Heroku sleeps, ClearDB crashes. lost connection error.
Here are the lines of code to connect:
from playhouse.db_url import connect
data =“*****”
db = connect(os.environ.get(data) or data)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question