Browse Source

Update settings.py to fix loading error of django_heroku

pull/1100/head
Hironsan 4 years ago
parent
commit
ff32468fd8
1 changed files with 1 additions and 1 deletions
  1. 2
      app/app/settings.py

2
app/app/settings.py

@ -284,7 +284,7 @@ if (spec := importlib.util.find_spec(name)) is not None:
module = importlib.util.module_from_spec(spec)
sys.modules[name] = module
spec.loader.exec_module(module)
django_heroku.settings(locals(), test_runner=False)
module.settings(locals(), test_runner=False)
# Change 'default' database configuration with $DATABASE_URL.
DATABASES['default'].update(dj_database_url.config(

Loading…
Cancel
Save