django-resonant-settings 0.26__py3-none-any.whl → 0.28__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.
- {django_resonant_settings-0.26.dist-info → django_resonant_settings-0.28.dist-info}/METADATA +5 -2
- {django_resonant_settings-0.26.dist-info → django_resonant_settings-0.28.dist-info}/RECORD +8 -8
- resonant_settings/allauth.py +3 -4
- resonant_settings/celery.py +3 -0
- resonant_settings/django.py +1 -3
- resonant_settings/testing/minio_storage.py +4 -1
- {django_resonant_settings-0.26.dist-info → django_resonant_settings-0.28.dist-info}/WHEEL +0 -0
- {django_resonant_settings-0.26.dist-info → django_resonant_settings-0.28.dist-info}/licenses/LICENSE +0 -0
{django_resonant_settings-0.26.dist-info → django_resonant_settings-0.28.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: django-resonant-settings
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.28
|
|
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
|
|
@@ -18,8 +18,11 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
18
18
|
Classifier: Operating System :: OS Independent
|
|
19
19
|
Classifier: Programming Language :: Python
|
|
20
20
|
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
24
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
-
Requires-Python: >=3.
|
|
25
|
+
Requires-Python: >=3.10
|
|
23
26
|
Requires-Dist: django-environ
|
|
24
27
|
Provides-Extra: allauth
|
|
25
28
|
Requires-Dist: django-allauth; extra == 'allauth'
|
|
@@ -1,9 +1,9 @@
|
|
|
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=
|
|
4
|
-
resonant_settings/celery.py,sha256=
|
|
3
|
+
resonant_settings/allauth.py,sha256=J4sYXDF-_m6-KZKQHCTltQ7ff7wCMaitDPrWhu1rCKY,1715
|
|
4
|
+
resonant_settings/celery.py,sha256=CcY6ky46F0WzTzdlSTNJJe1pItLgsTt_9S6eqOTl5EM,3049
|
|
5
5
|
resonant_settings/debug_toolbar.py,sha256=GhIMbjYsHjiRhrRF6qhYwg-f4gqfO_9OPtD9x-wXz2o,427
|
|
6
|
-
resonant_settings/django.py,sha256=
|
|
6
|
+
resonant_settings/django.py,sha256=x7YKyP3KTiit_lPGpGYyepFg9gWKQEIXmCyHnCOBYZs,1500
|
|
7
7
|
resonant_settings/logging.py,sha256=sPjCN-vvLqozCOpDMKiZ-S9AWzaxH_S7LCuyuc7js4A,2811
|
|
8
8
|
resonant_settings/oauth_toolkit.py,sha256=_3nArvejI97bdzowOPdV1oniBY0goJ9Jg_Rul1CJLGY,1641
|
|
9
9
|
resonant_settings/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -23,8 +23,8 @@ resonant_settings/production/email.py,sha256=EQJ7f9jhcu4NxnBa1Wo0gs7JFqaUB87_ETH
|
|
|
23
23
|
resonant_settings/production/https.py,sha256=2mru4jteqwW4z1AJJwvqy5sZhpxTh-9OidHOb94X1vY,860
|
|
24
24
|
resonant_settings/production/s3_storage.py,sha256=MDqpxX92t91E50Or_cMXpPzR40OuN52QrGcYJYRmXCQ,968
|
|
25
25
|
resonant_settings/testing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
-
resonant_settings/testing/minio_storage.py,sha256=
|
|
27
|
-
django_resonant_settings-0.
|
|
28
|
-
django_resonant_settings-0.
|
|
29
|
-
django_resonant_settings-0.
|
|
30
|
-
django_resonant_settings-0.
|
|
26
|
+
resonant_settings/testing/minio_storage.py,sha256=3t7F_mA-p9U06kfn7tz5rOfSwefjhauVPj_1D0x4toM,921
|
|
27
|
+
django_resonant_settings-0.28.dist-info/METADATA,sha256=I2RETXe1kBsVzCF2jvBL6w_LaT0Bwjja7hbsPmtQCsw,1667
|
|
28
|
+
django_resonant_settings-0.28.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
29
|
+
django_resonant_settings-0.28.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
30
|
+
django_resonant_settings-0.28.dist-info/RECORD,,
|
resonant_settings/allauth.py
CHANGED
|
@@ -23,11 +23,11 @@ AUTHENTICATION_BACKENDS = [
|
|
|
23
23
|
# see configuration documentation at
|
|
24
24
|
# https://django-allauth.readthedocs.io/en/latest/configuration.html
|
|
25
25
|
|
|
26
|
-
# Require email verification
|
|
26
|
+
# Require email verification
|
|
27
27
|
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
|
|
28
28
|
|
|
29
29
|
# Use email as the identifier for login
|
|
30
|
-
|
|
30
|
+
ACCOUNT_LOGIN_METHODS = {"email"}
|
|
31
31
|
ACCOUNT_EMAIL_REQUIRED = True
|
|
32
32
|
ACCOUNT_USERNAME_REQUIRED = False
|
|
33
33
|
|
|
@@ -40,8 +40,7 @@ ACCOUNT_SESSION_REMEMBER = True
|
|
|
40
40
|
ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True
|
|
41
41
|
ACCOUNT_LOGIN_ON_PASSWORD_RESET = True
|
|
42
42
|
|
|
43
|
-
#
|
|
44
|
-
ACCOUNT_LOGOUT_ON_GET = True
|
|
43
|
+
# Confirm URLs include a secret token, so CSRF safety isn't a concern
|
|
45
44
|
ACCOUNT_CONFIRM_EMAIL_ON_GET = True
|
|
46
45
|
|
|
47
46
|
# This will likely become the default in the future, but enable it now
|
resonant_settings/celery.py
CHANGED
|
@@ -45,6 +45,9 @@ CELERY_TASK_ACKS_ON_FAILURE_OR_TIMEOUT = True
|
|
|
45
45
|
# and this will be Celery's default in 6.0.
|
|
46
46
|
CELERY_WORKER_CANCEL_LONG_RUNNING_TASKS_ON_CONNECTION_LOSS = True
|
|
47
47
|
|
|
48
|
+
# This is the default, but is necessary to suppress warnings in Celery
|
|
49
|
+
CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP = True
|
|
50
|
+
|
|
48
51
|
# CloudAMQP-suggested settings
|
|
49
52
|
# https://www.cloudamqp.com/docs/celery.html
|
|
50
53
|
CELERY_BROKER_POOL_LIMIT = 1
|
resonant_settings/django.py
CHANGED
|
@@ -3,13 +3,16 @@ Configure MinioMediaStorage.
|
|
|
3
3
|
|
|
4
4
|
This requires the `django-minio-storage` package to be installed.
|
|
5
5
|
"""
|
|
6
|
+
|
|
6
7
|
from urllib.parse import ParseResult
|
|
7
8
|
|
|
8
9
|
from resonant_settings._env import env
|
|
9
10
|
|
|
10
11
|
minio_url: ParseResult = env.url("DJANGO_MINIO_STORAGE_URL")
|
|
11
12
|
MINIO_STORAGE_USE_HTTPS = minio_url.scheme == "https"
|
|
12
|
-
MINIO_STORAGE_ENDPOINT =
|
|
13
|
+
MINIO_STORAGE_ENDPOINT = (
|
|
14
|
+
f"{minio_url.hostname}:{minio_url.port}" if minio_url.port else minio_url.hostname
|
|
15
|
+
)
|
|
13
16
|
MINIO_STORAGE_ACCESS_KEY = minio_url.username
|
|
14
17
|
MINIO_STORAGE_SECRET_KEY = minio_url.password
|
|
15
18
|
MINIO_STORAGE_MEDIA_BUCKET_NAME = minio_url.path.lstrip("/")
|
|
File without changes
|
{django_resonant_settings-0.26.dist-info → django_resonant_settings-0.28.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|