django-resonant-settings 0.43.1__py3-none-any.whl → 0.43.2__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.43.2
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
@@ -23,8 +23,8 @@ resonant_settings/production/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NM
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.43.2.dist-info/METADATA,sha256=z7s1ZYdvFX_dUtreyo4ScBGuLfJoUcDN7Y1VJxAadEk,1792
27
+ django_resonant_settings-0.43.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
28
+ django_resonant_settings-0.43.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
29
+ django_resonant_settings-0.43.2.dist-info/licenses/NOTICE,sha256=NU8vSqFl-Z30QJ2VOCAkStAVQon47sNgE3wwz-7nQSo,585
30
+ django_resonant_settings-0.43.2.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",
@@ -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"},