Use config.py for rqsettings

Move `config.local.py` to `config_local.py`, since `.` is invalid in
filenames for imports
This commit is contained in:
Max Meinhold 2020-10-11 13:28:05 -04:00
parent c80b240497
commit b95e446857
No known key found for this signature in database
GPG key ID: 00B8B1017EEC103F
3 changed files with 10 additions and 4 deletions

View file

@ -3,7 +3,12 @@ import os
import sentry_sdk
from sentry_sdk.integrations.rq import RqIntegration
if os.path.exists('config_local.py'):
import config_local as config
else:
import config
sentry_sdk.init(
os.environ.get('PROXSTAR_SENTRY_DSN'),
config.SENTRY_DSN,
integrations=[RqIntegration()]
)