This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 140
Errors after test run #39
Comments
if 'HEROKU' in os.environ:
import django_heroku
django_heroku.settings(locals()) No longer work. heroku run python3
python3
>>>import os
>>>os.environ Will find out. Now, I use this code
To avoid error. |
Having the same problem on Travis CI. Near identical traceback:
@wwin3286tw 's suggestion worked, and build now passes |
Same issue confirmed. I've approached this slightly different. I am new with Heroku so I might misunderstand something, but I think this is cleaner since it gives me more control over the environment variable I'll be looking for. Credit.
|
I had the same issue, but with Travis CI. The problem was that for some reason the commits to the default sqlite database didn't work, so setting a postgresql database solved it for me |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I run
./manage.py test
on GitLab CI I get the following error.After test output:
Work around is to call
settings
only on heroku:Might be related to #31 but the traceback differs a lot.
The text was updated successfully, but these errors were encountered: