django-resonant-settings 0.43.1__tar.gz → 0.44.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.43.1 → django_resonant_settings-0.44.0}/PKG-INFO +1 -1
  2. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/allauth.py +3 -1
  3. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/development/celery.py +3 -1
  4. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/django.py +5 -3
  5. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/.gitignore +0 -0
  6. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/LICENSE +0 -0
  7. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/NOTICE +0 -0
  8. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/README.md +0 -0
  9. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/pyproject.toml +0 -0
  10. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/__init__.py +0 -0
  11. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/_env.py +0 -0
  12. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/allauth_support/__init__.py +0 -0
  13. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/allauth_support/adapter.py +0 -0
  14. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/allauth_support/apps.py +0 -0
  15. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/allauth_support/createsuperuser.py +0 -0
  16. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/allauth_support/management/commands/createsuperuser.py +0 -0
  17. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/allauth_support/receiver.py +0 -0
  18. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/allauth_support/utils.py +0 -0
  19. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/celery.py +0 -0
  20. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/development/__init__.py +0 -0
  21. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/development/debug_toolbar.py +0 -0
  22. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/development/minio_storage.py +0 -0
  23. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/django_extensions.py +0 -0
  24. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/logging.py +0 -0
  25. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/oauth_toolkit.py +0 -0
  26. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/production/__init__.py +0 -0
  27. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/production/email.py +0 -0
  28. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/production/https.py +0 -0
  29. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/production/s3_storage.py +0 -0
  30. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/py.typed +0 -0
  31. {django_resonant_settings-0.43.1 → django_resonant_settings-0.44.0}/resonant_settings/rest_framework.py +0 -0
@@ -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
@@ -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"},