Skip to content
Snippets Groups Projects
Commit cb14d22d authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Remove superfluous comments

parent dc86d6e1
No related branches found
No related tags found
No related merge requests found
# Django settings for pv project.
import os import os
from pathlib import Path from pathlib import Path
...@@ -8,7 +6,6 @@ from django_auth_ldap.config import LDAPSearch, PosixGroupType ...@@ -8,7 +6,6 @@ from django_auth_ldap.config import LDAPSearch, PosixGroupType
import ldap import ldap
# Paths
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
LOCALE_PATHS = (BASE_DIR / "locale",) LOCALE_PATHS = (BASE_DIR / "locale",)
...@@ -27,14 +24,12 @@ SITE_ID = 1 ...@@ -27,14 +24,12 @@ SITE_ID = 1
# Must be set if DEBUG is False # Must be set if DEBUG is False
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", default="127.0.0.1,localhost").split(",") ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", default="127.0.0.1,localhost").split(",")
# Whitelist origins that access the API
CORS_ALLOWED_ORIGINS = ["http://localhost:8080", "http://localhost:8040"] CORS_ALLOWED_ORIGINS = ["http://localhost:8080", "http://localhost:8040"]
CORS_ALLOW_CREDENTIALS = True CORS_ALLOW_CREDENTIALS = True
CORS_ALLOW_HEADERS = list(default_headers) + [ CORS_ALLOW_HEADERS = list(default_headers) + [
"content-disposition", "content-disposition",
] ]
# ENGINE is 'sqlite3' by default and NAME is 'db.sqlite3' by default
DATABASES = { DATABASES = {
"default": { "default": {
"ENGINE": f"django.db.backends.{os.getenv('DATABASE_ENGINE', default='sqlite3')}", "ENGINE": f"django.db.backends.{os.getenv('DATABASE_ENGINE', default='sqlite3')}",
...@@ -46,7 +41,6 @@ DATABASES = { ...@@ -46,7 +41,6 @@ DATABASES = {
}, },
} }
# LOCALIZATION
TIME_ZONE = os.getenv("TZ", default="Europe/Vienna") TIME_ZONE = os.getenv("TZ", default="Europe/Vienna")
LANGUAGE_CODE = "de" LANGUAGE_CODE = "de"
USE_L10N = True USE_L10N = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment