Browse Source

Update settings.py to avoid assignment statement

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

3
app/app/settings.py

@ -280,7 +280,8 @@ LOGOUT_REDIRECT_URL = '/'
# dynamic import to avoid installing psycopg2 on pip installation.
name = 'django_heroku'
if (spec := importlib.util.find_spec(name)) is not None:
spec = importlib.util.find_spec(name)
if spec is not None:
module = importlib.util.module_from_spec(spec)
sys.modules[name] = module
spec.loader.exec_module(module)

Loading…
Cancel
Save