django-resonant-settings 0.43.1__py3-none-any.whl → 0.44.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.43.1
3
+ Version: 0.44.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
@@ -1,8 +1,8 @@
1
1
  resonant_settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  resonant_settings/_env.py,sha256=TA97UtDkh7tgBIPc92Osj4FtrBfzMTCmBQ6UR1dPHEk,36
3
- resonant_settings/allauth.py,sha256=MhTs9eQ1JZW5b07gyLDQ7FcsI6sLcVD3YiTkuz8cCqE,2173
3
+ resonant_settings/allauth.py,sha256=V2HRE3GRHxcpXhrDPtSvhL00SLGIzQQNVhf6NTvJYiY,2226
4
4
  resonant_settings/celery.py,sha256=Ab2Ugv-7VORzPilCTorz_Pn9rxWBtxMcjXzDHJmgJHI,3614
5
- resonant_settings/django.py,sha256=j0McDaroPGgmQb3IB5ASr93ZED4o2loTL8gpUjXJpqU,1588
5
+ resonant_settings/django.py,sha256=ARxmU_nLpyAPE46MFWWRFz6iCNf4Y4KMpsTG63-YlME,1667
6
6
  resonant_settings/django_extensions.py,sha256=aHR6S76Et71O5-KiMapmr-UjOMm7wBHmmZ23gpGdkcs,329
7
7
  resonant_settings/logging.py,sha256=f9zCDedg7yKBLnkl_yHxxjolzJjlm4VERoGPcNuerE4,2841
8
8
  resonant_settings/oauth_toolkit.py,sha256=wgUntzfpR5pcQvtewNS8mdGK_ZE8hdw6PJWoFq-dBHI,1718
@@ -16,15 +16,15 @@ resonant_settings/allauth_support/receiver.py,sha256=NlMMLIIWsz-psIgaqKltsjP9H76
16
16
  resonant_settings/allauth_support/utils.py,sha256=1nhH8p8-YqdUUoHQixxYIANveKAqaNE8phzvN3abNp0,497
17
17
  resonant_settings/allauth_support/management/commands/createsuperuser.py,sha256=61gF3oxhYXbnn49w78rl9SvZOE28tSLmBNVmGNOaexQ,1423
18
18
  resonant_settings/development/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
- resonant_settings/development/celery.py,sha256=lEuXJdWea0-EE09EbejEwNjHOLXTvtHQ6bc_rCQoeeM,664
19
+ resonant_settings/development/celery.py,sha256=ryNLZcj0oKzGpaVhKJVE3wQBOXwy1jRR6o1PNsyyQAg,836
20
20
  resonant_settings/development/debug_toolbar.py,sha256=kIapv6Jkpf205M5i33IyqnAcijNd3ctwcv6W6B3cfsc,510
21
21
  resonant_settings/development/minio_storage.py,sha256=SlrnVDfm5YfjXcTpdPe2Pzbmw4wLSwWp7ryWoghk3Do,1345
22
22
  resonant_settings/production/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  resonant_settings/production/email.py,sha256=TkiGaMq-7db7WfBeavYvBNt2nq0G9mneTUXRb13fo4Y,782
24
24
  resonant_settings/production/https.py,sha256=rACQoCN0bdUFRVtr-MJmMiOmk56qieZz24atn4rqUXg,884
25
25
  resonant_settings/production/s3_storage.py,sha256=rL05dCx49Xszwydp8i3QuRiP8dlxK0qnX55-0zn1rCQ,1468
26
- django_resonant_settings-0.43.1.dist-info/METADATA,sha256=KANAdMKMKXblbj-P5hqwBCTsvYzpnxANvk4KH4c7bRM,1792
27
- django_resonant_settings-0.43.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
28
- django_resonant_settings-0.43.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
29
- django_resonant_settings-0.43.1.dist-info/licenses/NOTICE,sha256=NU8vSqFl-Z30QJ2VOCAkStAVQon47sNgE3wwz-7nQSo,585
30
- django_resonant_settings-0.43.1.dist-info/RECORD,,
26
+ django_resonant_settings-0.44.0.dist-info/METADATA,sha256=Hj2FT9d4uRkqpAUMIw2iyBtqUEWKX0Gm7ivYdNzs2Qc,1792
27
+ django_resonant_settings-0.44.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
28
+ django_resonant_settings-0.44.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
29
+ django_resonant_settings-0.44.0.dist-info/licenses/NOTICE,sha256=NU8vSqFl-Z30QJ2VOCAkStAVQon47sNgE3wwz-7nQSo,585
30
+ django_resonant_settings-0.44.0.dist-info/RECORD,,
@@ -8,13 +8,15 @@ This requires the `django-allauth` package to be installed and requires
8
8
  `resonant_settings.allauth_support` to be added to INSTALLED_APPS.
9
9
  """
10
10
 
11
+ from collections.abc import Sequence
12
+
11
13
  # The sites framework requires this to be set.
12
14
  # In the unlikely case where a database's pk sequence for the django_site table is not reset,
13
15
  # the default site object could have a different pk. Then this will need to be overridden
14
16
  # downstream.
15
17
  SITE_ID = 1
16
18
 
17
- AUTHENTICATION_BACKENDS = [
19
+ AUTHENTICATION_BACKENDS: Sequence[str] = [
18
20
  # Django's built-in ModelBackend is not necessary, since all users will be
19
21
  # authenticated by their email address
20
22
  "allauth.account.auth_backends.AuthenticationBackend",
@@ -6,7 +6,9 @@ from resonant_settings._env import env
6
6
  CELERY_TASK_ACKS_LATE = False
7
7
 
8
8
  CELERY_TASK_ALWAYS_EAGER: bool = env.bool("DJANGO_CELERY_TASK_ALWAYS_EAGER", default=False)
9
- CELERY_TASK_EAGER_PROPAGATES = CELERY_TASK_ALWAYS_EAGER
9
+ # In eager mode (which might be set directly in tests), non-propagated exceptions allow bugs to go
10
+ # unnoticed, so ensure this is always enabled. This should have no effect in non-eager mode.
11
+ CELERY_TASK_EAGER_PROPAGATES = True
10
12
 
11
13
  # In development, run without concurrency.
12
14
  CELERY_WORKER_CONCURRENCY: int | None = 1
@@ -1,6 +1,8 @@
1
1
  """Configure a basic Django project."""
2
2
 
3
- TEMPLATES = [
3
+ from typing import Any
4
+
5
+ TEMPLATES: list[dict[str, Any]] = [
4
6
  {
5
7
  "BACKEND": "django.template.backends.django.DjangoTemplates",
6
8
  "DIRS": [],
@@ -16,7 +18,7 @@ TEMPLATES = [
16
18
  },
17
19
  ]
18
20
 
19
- PASSWORD_HASHERS = [
21
+ PASSWORD_HASHERS: list[str] = [
20
22
  # Argon2 is recommended by OWASP, so make it the default for new passwords
21
23
  # https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html
22
24
  "django.contrib.auth.hashers.Argon2PasswordHasher",
@@ -27,7 +29,7 @@ PASSWORD_HASHERS = [
27
29
  # since databases shouldn't have entries with other algorithms
28
30
  ]
29
31
  # https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
30
- AUTH_PASSWORD_VALIDATORS = [
32
+ AUTH_PASSWORD_VALIDATORS: list[dict[str, str]] = [
31
33
  {"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"},
32
34
  {"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator"},
33
35
  {"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator"},