Commit 55bc5a6b authored by olavhdi's avatar olavhdi
Browse files

#28 mypy plugin secfit/settings.py

parent df08699a
Pipeline #128113 passed with stage
in 32 seconds
......@@ -12,6 +12,8 @@ https://docs.djangoproject.com/en/3.1/ref/settings/
from pathlib import Path
import os
from typing import Dict
import dj_database_url
import dotenv
......@@ -101,7 +103,7 @@ WSGI_APPLICATION = "secfit.wsgi.application"
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
if 'DATABASE_URL' in os.environ:
DATABASES = {
DATABASES: Dict[str, Dict] = {
"default": {}
}
db_from_env = dj_database_url.config(conn_max_age=500)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment