Skip to content

Commit d61b8b4

Browse files
committed
chore: Point Django docs links in comments to stable version
1 parent ba21eab commit d61b8b4

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

benefits/locale/en/formats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# https://docs.djangoproject.com/en/5.0/ref/templates/builtins/#date-and-time-formatting-specifiers
1+
# https://docs.djangoproject.com/en/stable/ref/templates/builtins/#date-and-time-formatting-specifiers
22
DATE_FORMAT = "F j, Y"

benefits/locale/es/formats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Both “d” and “e” are backslash-escaped, because otherwise each is a format string
22
# that displays the day and the timezone name, respectively.
33
# Instead we want the literal word "de"
4-
# https://docs.djangoproject.com/en/5.0/ref/templates/builtins/#date-and-time-formatting-specifiers
4+
# https://docs.djangoproject.com/en/stable/ref/templates/builtins/#date-and-time-formatting-specifiers
55
DATE_FORMAT = r"j \d\e F \d\e Y"

benefits/secrets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SecretNameValidator(RegexValidator):
2727
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftkeyvault
2828
2929
Read more about Django validators:
30-
https://docs.djangoproject.com/en/5.0/ref/validators/#module-django.core.validators
30+
https://docs.djangoproject.com/en/stable/ref/validators/#module-django.core.validators
3131
"""
3232

3333
def __init__(self, *args, **kwargs):

benefits/settings.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def RUNTIME_ENVIRONMENT():
141141
# SSL terminates before getting to Django, and NGINX adds this header to indicate
142142
# if the original request was secure or not
143143
#
144-
# See https://docs.djangoproject.com/en/5.0/ref/settings/#secure-proxy-ssl-header
144+
# See https://docs.djangoproject.com/en/stable/ref/settings/#secure-proxy-ssl-header
145145
if not DEBUG:
146146
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
147147

@@ -226,14 +226,14 @@ def RUNTIME_ENVIRONMENT():
226226

227227
USE_I18N = True
228228

229-
# See https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-TIME_ZONE
229+
# See https://docs.djangoproject.com/en/stable/ref/settings/#std-setting-TIME_ZONE
230230
# > Note that this isn’t necessarily the time zone of the server.
231231
# > When USE_TZ is True, this is the default time zone that Django will use to display datetimes in templates
232232
# > and to interpret datetimes entered in forms.
233233
TIME_ZONE = "America/Los_Angeles"
234234
USE_TZ = True
235235

236-
# https://docs.djangoproject.com/en/5.0/topics/i18n/formatting/#creating-custom-format-files
236+
# https://docs.djangoproject.com/en/stable/topics/i18n/formatting/#creating-custom-format-files
237237
FORMAT_MODULE_PATH = [
238238
"benefits.locale",
239239
]
@@ -390,7 +390,7 @@ def RUNTIME_ENVIRONMENT():
390390
REQUESTS_TIMEOUT = (REQUESTS_CONNECT_TIMEOUT, REQUESTS_READ_TIMEOUT)
391391

392392
# Email
393-
# https://docs.djangoproject.com/en/5.2/ref/settings/#email-backend
393+
# https://docs.djangoproject.com/en/stable/ref/settings/#email-backend
394394
# https://github.com/retech-us/django-azure-communication-email
395395
AZURE_COMMUNICATION_CONNECTION_STRING = os.environ.get("AZURE_COMMUNICATION_CONNECTION_STRING")
396396

@@ -401,5 +401,5 @@ def RUNTIME_ENVIRONMENT():
401401
EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend"
402402
EMAIL_FILE_PATH = os.path.join(STORAGE_DIR, ".sent_emails")
403403

404-
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-from-email
404+
# https://docs.djangoproject.com/en/stable/ref/settings/#default-from-email
405405
DEFAULT_FROM_EMAIL = os.environ.get("DEFAULT_FROM_EMAIL", "noreply@example.calitp.org")

benefits/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
benefits URL Configuration
33
44
The `urlpatterns` list routes URLs to views. For more information please see:
5-
https://docs.djangoproject.com/en/5.0/topics/http/urls/
5+
https://docs.djangoproject.com/en/stable/topics/http/urls/
66
"""
77

88
import logging
@@ -44,7 +44,7 @@
4444
# serve user-uploaded media files
4545
#
4646
# the helper function `django.conf.urls.static.static` mentioned in
47-
# https://docs.djangoproject.com/en/5.1/howto/static-files/#serving-files-uploaded-by-a-user-during-development
47+
# https://docs.djangoproject.com/en/stable/howto/static-files/#serving-files-uploaded-by-a-user-during-development
4848
# only works when settings.DEBUG = True, so here we add the URL pattern ourselves so it works regardless of DEBUG.
4949
prefix = settings.MEDIA_URL
5050
urlpatterns.extend(

benefits/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
It exposes the WSGI callable as a module-level variable named ``application``.
55
66
For more information on this file, see
7-
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
7+
https://docs.djangoproject.com/en/stable/howto/deployment/wsgi/
88
"""
99

1010
import os

0 commit comments

Comments
 (0)