django-resonant-settings 0.33.2__tar.gz → 0.41.0__tar.gz

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.
Files changed (31) hide show
  1. django_resonant_settings-0.41.0/NOTICE +13 -0
  2. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/PKG-INFO +3 -1
  3. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/pyproject.toml +2 -1
  4. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/production/https.py +0 -4
  5. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/production/s3_storage.py +6 -2
  6. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/.gitignore +0 -0
  7. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/LICENSE +0 -0
  8. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/README.md +0 -0
  9. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/__init__.py +0 -0
  10. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/_env.py +0 -0
  11. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/allauth.py +0 -0
  12. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/allauth_support/__init__.py +0 -0
  13. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/allauth_support/adapter.py +0 -0
  14. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/allauth_support/apps.py +0 -0
  15. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/allauth_support/createsuperuser.py +0 -0
  16. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/allauth_support/management/commands/createsuperuser.py +0 -0
  17. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/allauth_support/receiver.py +0 -0
  18. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/allauth_support/utils.py +0 -0
  19. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/celery.py +0 -0
  20. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/development/__init__.py +0 -0
  21. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/development/celery.py +0 -0
  22. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/development/debug_toolbar.py +0 -0
  23. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/development/minio_storage.py +0 -0
  24. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/django.py +0 -0
  25. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/django_extensions.py +0 -0
  26. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/logging.py +0 -0
  27. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/oauth_toolkit.py +0 -0
  28. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/production/__init__.py +0 -0
  29. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/production/email.py +0 -0
  30. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/py.typed +0 -0
  31. {django_resonant_settings-0.33.2 → django_resonant_settings-0.41.0}/resonant_settings/rest_framework.py +0 -0
@@ -0,0 +1,13 @@
1
+ Copyright 2020 Kitware, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ See accompanying LICENSE file. You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-resonant-settings
3
- Version: 0.33.2
3
+ Version: 0.41.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
7
7
  Maintainer-email: "Kitware, Inc." <kitware@kitware.com>
8
8
  License-Expression: Apache-2.0
9
9
  License-File: LICENSE
10
+ License-File: NOTICE
10
11
  Keywords: django,resonant,setting,settings
11
12
  Classifier: Development Status :: 3 - Alpha
12
13
  Classifier: Environment :: Web Environment
@@ -22,6 +23,7 @@ Classifier: Programming Language :: Python :: 3.10
22
23
  Classifier: Programming Language :: Python :: 3.11
23
24
  Classifier: Programming Language :: Python :: 3.12
24
25
  Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
25
27
  Requires-Python: >=3.10
26
28
  Requires-Dist: django-environ
27
29
  Provides-Extra: allauth
@@ -8,7 +8,7 @@ description = "Shared Django settings for Resonant applications."
8
8
  readme = "README.md"
9
9
  requires-python = ">=3.10"
10
10
  license = "Apache-2.0"
11
- license-files = ["LICENSE"]
11
+ license-files = ["LICENSE", "NOTICE"]
12
12
  maintainers = [{ name = "Kitware, Inc.", email = "kitware@kitware.com" }]
13
13
  keywords = [
14
14
  "django",
@@ -30,6 +30,7 @@ classifiers = [
30
30
  "Programming Language :: Python :: 3.11",
31
31
  "Programming Language :: Python :: 3.12",
32
32
  "Programming Language :: Python :: 3.13",
33
+ "Programming Language :: Python :: 3.14",
33
34
  "Programming Language :: Python",
34
35
  ]
35
36
  dependencies = [
@@ -4,10 +4,6 @@ from datetime import timedelta
4
4
 
5
5
  SECURE_SSL_REDIRECT = True
6
6
 
7
- # This needs to be set by the HTTPS terminating reverse proxy.
8
- # Heroku and Render automatically set this.
9
- SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
10
-
11
7
  SESSION_COOKIE_SECURE = True
12
8
  CSRF_COOKIE_SECURE = True
13
9
 
@@ -23,9 +23,13 @@ AWS_S3_SECRET_ACCESS_KEY: str = env.str("AWS_SECRET_ACCESS_KEY")
23
23
  AWS_STORAGE_BUCKET_NAME: str = env.str("DJANGO_STORAGE_BUCKET_NAME")
24
24
 
25
25
  # It's critical to use the v4 signature;
26
- # it isn't the upstream default only for backwards compatability reasons.
26
+ # it isn't the upstream default only for backwards compatibility reasons.
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())