-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathsettings.py
More file actions
28 lines (22 loc) · 884 Bytes
/
settings.py
File metadata and controls
28 lines (22 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from pretix.settings import * # noqa
from pretix.settings import INSTALLED_APPS, ALL_LANGUAGES, LOGGING, config
LOGGING["handlers"]["mail_admins"]["include_html"] = True
# Allow all the languages
# see: pretix/settings.py#L425-L435
LANGUAGES = [(k, v) for k, v in ALL_LANGUAGES]
EMAIL_SUBJECT_PREFIX = "[PyCon Tickets] "
if "pretix_fattura_elettronica" in INSTALLED_APPS:
INSTALLED_APPS.remove("pretix_fattura_elettronica")
INSTALLED_APPS.insert(0, "pretix_fattura_elettronica")
STORAGES = {
"default": {
"BACKEND": "storages.backends.s3.S3Storage",
},
"staticfiles": {
"BACKEND": "django.contrib.staticfiles.storage.ManifestStaticFilesStorage",
},
}
AWS_STORAGE_BUCKET_NAME = config.get("pycon", "media_bucket_name", fallback="")
AWS_S3_SIGNATURE_VERSION = "s3v4"
AWS_S3_ADDRESSING_STYLE = "virtual"
AWS_S3_REGION_NAME = "eu-central-1"