-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated settings #72
Updated settings #72
Conversation
Updated settings for debugging and more variables to overcome bugs
Hi @UmarGit! Thank you for continuing to troubleshoot and debug environmental variables in |
@UmarGit: When I Google: ‘heroku ssl django operationalerror pgbouncer’, it turns up a known issue described in an on the official Heroku GitHub repo titled: “django.db.utils.OperationalError: server does not support SSL, but SSL was required #118”. That is our issue precisely. A number of other users chimed in with a solution that seems to resolve the issue for all of them. The solution is to add:
after:
When I make that change, I didn't bother committing the change or pushing to Heroku because my local Django dev server exits with this traceback:
So this is probably not the solution we need. |
Hey @enoren5 Today, I was very curious and after brain-storming, I see you had advised me to delete the sslmode key from database dictionary, but as we are trying to do that, we fail, because the problem is in the library, Like as: django_heroku.settings(locals())
#databases=False
django_heroku.settings(locals(), databases=False) So after that this behavior will be disabled and we can have our DATABASE value un-modified.
That's all I had done |
At line 149 in I committed the change, pushed to Heroku, and rebuilt the project using the build pack. The SSL error appears to be gone. Hooray! But now there is a missing table trace-back:
You can see it here: https://tarot-juicer-next-iter.herokuapp.com/ I've seen this error before. It usually indicates that the the db needs to be migrated/makemigrations. When I ran those commands, I got this:
Notice that the DATABASES environment variable (dictionary) is being printed? It looks like Heroku is using the postgresdb successfully. Woohooo! I'm just not sure what I am doing wrong to overcome the migrations/migrate error now. Just to double check your advice from prior contracts, I even ran: |
First revert the migration as the name of auto toggle is changed:
Second migrate it with new name:
Resolves #69 |
Updated settings for debugging and more variables to overcome bugs