django-resonant-settings 0.33.1__py3-none-any.whl → 0.40.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-resonant-settings
3
- Version: 0.33.1
3
+ Version: 0.40.0
4
4
  Summary: Shared Django settings for Resonant applications.
5
5
  Project-URL: Repository, https://github.com/kitware-resonant/cookiecutter-resonant
6
6
  Project-URL: Bug Reports, https://github.com/kitware-resonant/cookiecutter-resonant/issues
@@ -21,9 +21,9 @@ resonant_settings/development/debug_toolbar.py,sha256=GhIMbjYsHjiRhrRF6qhYwg-f4g
21
21
  resonant_settings/development/minio_storage.py,sha256=4FIC3ZHyfej8IgbSgylFqXOcNx_-_sTUlCoBZLkeLYs,1002
22
22
  resonant_settings/production/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  resonant_settings/production/email.py,sha256=EQJ7f9jhcu4NxnBa1Wo0gs7JFqaUB87_ETHbVdUo8HY,623
24
- resonant_settings/production/https.py,sha256=2mru4jteqwW4z1AJJwvqy5sZhpxTh-9OidHOb94X1vY,860
25
- resonant_settings/production/s3_storage.py,sha256=2TPSHcBazFeYfJhZWTQfuAGWa-WZ4wDife_NXaA0Tfc,973
26
- django_resonant_settings-0.33.1.dist-info/METADATA,sha256=8sRz3OcjaSGuVodwBtr126ZgxgasNjqi-8SL-62pgFk,1720
27
- django_resonant_settings-0.33.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
- django_resonant_settings-0.33.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
29
- django_resonant_settings-0.33.1.dist-info/RECORD,,
24
+ resonant_settings/production/https.py,sha256=X0bP_k2Y2axvg7CaWoZBYb9cuvVpfUyNtk4DPSfJRR8,865
25
+ resonant_settings/production/s3_storage.py,sha256=K60ygThFVuciJW4lVIPY6RAJ-eaKgNzgnqpTHbkCNTM,1215
26
+ django_resonant_settings-0.40.0.dist-info/METADATA,sha256=AXaoyYLBJTHdyNW3ZnCKNz12tZ5MMLG7Be6BlV7XiM4,1720
27
+ django_resonant_settings-0.40.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
+ django_resonant_settings-0.40.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
29
+ django_resonant_settings-0.40.0.dist-info/RECORD,,
@@ -12,7 +12,7 @@ SESSION_COOKIE_SECURE = True
12
12
  CSRF_COOKIE_SECURE = True
13
13
 
14
14
  # Enable HSTS
15
- SECURE_HSTS_SECONDS = timedelta(days=365).total_seconds()
15
+ SECURE_HSTS_SECONDS = int(timedelta(days=365).total_seconds())
16
16
  # This is already False by default, but it's important to ensure HSTS is not forced on other
17
17
  # subdomains which may have different HTTPS practices.
18
18
  SECURE_HSTS_INCLUDE_SUBDOMAINS = False
@@ -27,5 +27,9 @@ AWS_STORAGE_BUCKET_NAME: str = env.str("DJANGO_STORAGE_BUCKET_NAME")
27
27
  AWS_S3_SIGNATURE_VERSION = "s3v4"
28
28
 
29
29
  AWS_S3_MAX_MEMORY_SIZE = 5 * 1024 * 1024
30
- AWS_S3_FILE_OVERWRITE = False
30
+
31
+ # Although overwriting existing files can be dangerous, it's the application's responsibility
32
+ # (not the Storage layer) to handle. Setting this to `False` allows file names to be mutated in
33
+ # the event of a collision, which can be confusing.
34
+ AWS_S3_FILE_OVERWRITE = True
31
35
  AWS_QUERYSTRING_EXPIRE = int(timedelta(hours=6).total_seconds())