django-resonant-settings 0.26__py3-none-any.whl → 0.27__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.26
3
+ Version: 0.27
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.13
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
3
  resonant_settings/allauth.py,sha256=X1B2gTGYW4QIzHi4ZTuZbpdKWdrd5fZyz3ULAPGedc0,1803
4
- resonant_settings/celery.py,sha256=JZld5ch3Kf657MHiHQzjo0mPJI1BY5iz-BZeoJ14YRI,2928
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=iecneL-15GBzxGnaEQxxIsRcvRQlIcNtokuUkQVbayE,1502
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=uHtLQ2ablf7kI85NmFWo12NarbG0wYt3ZpcYSpjUGdQ,899
27
- django_resonant_settings-0.26.dist-info/METADATA,sha256=ixz6tVvD_pK0tP6fC8FxcrYk3Egxc0eFrgZA98KhFtI,1514
28
- django_resonant_settings-0.26.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
- django_resonant_settings-0.26.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
- django_resonant_settings-0.26.dist-info/RECORD,,
26
+ resonant_settings/testing/minio_storage.py,sha256=3t7F_mA-p9U06kfn7tz5rOfSwefjhauVPj_1D0x4toM,921
27
+ django_resonant_settings-0.27.dist-info/METADATA,sha256=m1zZFdxEkiPiFLEyrB0Q6ZpiUpAc6wzFmeLL0yJmw6Y,1667
28
+ django_resonant_settings-0.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
29
+ django_resonant_settings-0.27.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
+ django_resonant_settings-0.27.dist-info/RECORD,,
@@ -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
@@ -1,6 +1,4 @@
1
- """
2
- Configure a basic Django project.
3
- """
1
+ """Configure a basic Django project."""
4
2
 
5
3
  TEMPLATES = [
6
4
  {
@@ -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 = minio_url.hostname + (f":{minio_url.port}" if minio_url.port else "")
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("/")