diff --git a/WikiENS/settings/common.py b/WikiENS/settings/common.py index 67cdbc7..87862de 100644 --- a/WikiENS/settings/common.py +++ b/WikiENS/settings/common.py @@ -35,9 +35,7 @@ DBPASSWD = import_secret("DBPASSWD") SERVER_EMAIL = "wiki@www.eleves.ens.fr" -BASE_DIR = os.path.dirname( - os.path.dirname(os.path.dirname(os.path.abspath(__file__))) -) +BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) INSTALLED_APPS = [ @@ -176,9 +174,9 @@ ACCOUNT_HOME_URL = HOME_URL ACCOUNT_USER_DISPLAY = _user_display SOCIALACCOUNT_PROVIDERS = { - 'clipper': { - 'MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT': True, - 'MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT_LEVEL': messages.INFO, + "clipper": { + "MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT": True, + "MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT_LEVEL": messages.INFO, }, } @@ -215,7 +213,7 @@ WIKI_REVISIONS_PER_MINUTES = 180 # This is needed for django-allauth-cas, see # https://blog.ubuntu.com/2015/08/18/django-behind-a-proxy-fixing-absolute-urls USE_X_FORWARDED_HOST = True -SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') +SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") # Use sign up, login, logout, profile settings views of allauth. WIKI_ACCOUNT_HANDLING = False diff --git a/WikiENS/settings/local.py b/WikiENS/settings/local.py index b35822d..6771ca2 100644 --- a/WikiENS/settings/local.py +++ b/WikiENS/settings/local.py @@ -11,6 +11,6 @@ DEBUG = True DATABASES = { "default": { "ENGINE": "django.db.backends.sqlite3", - "NAME": os.path.join(BASE_DIR, "db.sqlite3") + "NAME": os.path.join(BASE_DIR, "db.sqlite3"), } } diff --git a/WikiENS/settings/secret_example.py b/WikiENS/settings/secret_example.py index 5fc6f4f..499f35d 100644 --- a/WikiENS/settings/secret_example.py +++ b/WikiENS/settings/secret_example.py @@ -1,4 +1,4 @@ -SECRET_KEY = '_u5q4-^1qgkqg=i5o5ha*xkd@82#l$e+%m)$v+4y#t-5!g-%g2' +SECRET_KEY = "_u5q4-^1qgkqg=i5o5ha*xkd@82#l$e+%m)$v+4y#t-5!g-%g2" ADMINS = None EMAIL_HOST = "localhost"