[damned-lies] chore: reformated settings with black, remove old settings
- From: Guillaume Bernard <gbernard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] chore: reformated settings with black, remove old settings
- Date: Tue, 10 May 2022 08:30:02 +0000 (UTC)
commit 03f7a9b9f58920339d4fcae609e67857bac9b191
Author: Guillaume Bernard <associations guillaume-bernard fr>
Date: Mon May 9 15:06:22 2022 +0200
chore: reformated settings with black, remove old settings
containers/production/local_settings.py | 55 ++++++++++++++-------------------
1 file changed, 23 insertions(+), 32 deletions(-)
---
diff --git a/containers/production/local_settings.py b/containers/production/local_settings.py
index ab604a05..8dae1a43 100644
--- a/containers/production/local_settings.py
+++ b/containers/production/local_settings.py
@@ -4,41 +4,39 @@ DEBUG = False
STATIC_SERVE = False
USE_DJANGO_OPENID = False
-ADMINS = (
- ('Guillaume Bernard', 'associations guillaume-bernard fr'),
-)
+ADMINS = (("Guillaume Bernard", "associations guillaume-bernard fr"),)
MANAGERS = ADMINS
DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.mysql',
- 'NAME' : '$DB_NAME',
- 'USER' : '$DB_USER',
- 'PASSWORD': '$DB_PASSWORD',
- 'HOST' : '$DB_HOST',
- 'PORT' : '$DB_PORT',
- 'CONN_MAX_AGE': 300,
- 'OPTIONS': {
- 'charset': 'utf8mb4',
- }
+ "default": {
+ "ENGINE": "django.db.backends.mysql",
+ "NAME": "$DB_NAME",
+ "USER": "$DB_USER",
+ "PASSWORD": "$DB_PASSWORD",
+ "HOST": "$DB_HOST",
+ "PORT": "$DB_PORT",
+ "CONN_MAX_AGE": 300,
+ "OPTIONS": {
+ "charset": "utf8mb4",
+ },
}
}
-SECRET_KEY = '$SECRET_KEY'
-ALLOWED_HOSTS=['l10n.gnome.org', '8.43.85.13', '8.43.85.14', '8.43.85.29']
+SECRET_KEY = """$SECRET_KEY"""
+ALLOWED_HOSTS = ["l10n.gnome.org", "8.43.85.13", "8.43.85.14", "8.43.85.29"]
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
-SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
+SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
-EMAIL_HOST = 'smtp-int.gnome.org'
-EMAIL_SUBJECT_PREFIX = '[DL]'
-DEFAULT_FROM_EMAIL = 'noreply gnome org'
-SERVER_EMAIL = 'gnomeweb gnome org'
+EMAIL_HOST = "smtp-int.gnome.org"
+EMAIL_SUBJECT_PREFIX = "[DL]"
+DEFAULT_FROM_EMAIL = "noreply gnome org"
+SERVER_EMAIL = "gnomeweb gnome org"
-TIME_ZONE = 'UTC'
+TIME_ZONE = "UTC"
-DATADIR = Path('/var/www/djamnedlies/data/')
-MEDIA_ROOT = DATADIR / 'media'
+DATADIR = Path("/var/www/djamnedlies/data/")
+MEDIA_ROOT = DATADIR / "media"
# Local directory path for VCS checkout
SCRATCHDIR = DATADIR / "scratchdir"
@@ -47,15 +45,8 @@ LOCK_DIR = DATADIR / "locks"
ADMIN_GROUP = "coordination_team"
-UPLOAD_ARCHIVED_DIR = 'upload-backup'
+UPLOAD_ARCHIVED_DIR = "upload-backup"
FILE_UPLOAD_PERMISSIONS = 0o644
-#ITSTOOL_PATH = '/usr/local/www/gnomeweb/local/bin/'
-
-# Sentry configuration (needs pip install raven)
-RAVEN_CONFIG = {
- "dsn": "$SENTRY_DSN"
-}
-
GITLAB_TOKEN = "$GITLAB_TOKEN"
VCS_HOME_REGEX = "gitlab\.gnome\.org"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]