|
13 | 13 | # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
|
14 | 14 | SECRET_KEY = env("DJANGO_SECRET_KEY")
|
15 | 15 | # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
|
16 |
| -ALLOWED_HOSTS = env.list( |
17 |
| - "DJANGO_ALLOWED_HOSTS", default=["sde-indexing-helper.nasa-impact.net"] |
18 |
| -) |
| 16 | +ALLOWED_HOSTS = env.list("DJANGO_ALLOWED_HOSTS", default=["sde-indexing-helper.nasa-impact.net"]) |
19 | 17 |
|
20 | 18 | # DATABASES
|
21 | 19 | # ------------------------------------------------------------------------------
|
|
36 | 34 | # TODO: set this to 60 seconds first and then to 518400 once you prove the former works
|
37 | 35 | SECURE_HSTS_SECONDS = 60
|
38 | 36 | # https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-include-subdomains
|
39 |
| -SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool( |
40 |
| - "DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS", default=True |
41 |
| -) |
| 37 | +SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool("DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS", default=True) |
42 | 38 | # https://docs.djangoproject.com/en/dev/ref/settings/#secure-hsts-preload
|
43 | 39 | SECURE_HSTS_PRELOAD = env.bool("DJANGO_SECURE_HSTS_PRELOAD", default=True)
|
44 | 40 | # https://docs.djangoproject.com/en/dev/ref/middleware/#x-content-type-options-nosniff
|
45 |
| -SECURE_CONTENT_TYPE_NOSNIFF = env.bool( |
46 |
| - "DJANGO_SECURE_CONTENT_TYPE_NOSNIFF", default=True |
47 |
| -) |
| 41 | +SECURE_CONTENT_TYPE_NOSNIFF = env.bool("DJANGO_SECURE_CONTENT_TYPE_NOSNIFF", default=True) |
48 | 42 |
|
49 | 43 | # STORAGES
|
50 | 44 | # ------------------------------------------------------------------------------
|
|
61 | 55 | # DO NOT change these unless you know what you're doing.
|
62 | 56 | _AWS_EXPIRY = 60 * 60 * 24 * 7
|
63 | 57 | # https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings
|
64 |
| -AWS_S3_OBJECT_PARAMETERS = { |
65 |
| - "CacheControl": f"max-age={_AWS_EXPIRY}, s-maxage={_AWS_EXPIRY}, must-revalidate" |
66 |
| -} |
| 58 | +AWS_S3_OBJECT_PARAMETERS = {"CacheControl": f"max-age={_AWS_EXPIRY}, s-maxage={_AWS_EXPIRY}, must-revalidate"} |
67 | 59 | # https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings
|
68 | 60 | AWS_S3_MAX_MEMORY_SIZE = env.int(
|
69 | 61 | "DJANGO_AWS_S3_MAX_MEMORY_SIZE",
|
|
128 | 120 | LOGGING = {
|
129 | 121 | "version": 1,
|
130 | 122 | "disable_existing_loggers": True,
|
131 |
| - "formatters": { |
132 |
| - "verbose": { |
133 |
| - "format": "%(levelname)s %(asctime)s %(module)s " |
134 |
| - "%(process)d %(thread)d %(message)s" |
135 |
| - } |
136 |
| - }, |
| 123 | + "formatters": {"verbose": {"format": "%(levelname)s %(asctime)s %(module)s " "%(process)d %(thread)d %(message)s"}}, |
137 | 124 | "handlers": {
|
138 | 125 | "console": {
|
139 | 126 | "level": "DEBUG",
|
|
0 commit comments