-
Notifications
You must be signed in to change notification settings - Fork 54
build(deps): bump django to 5.2 lts #1457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| import os | ||
| from warnings import filterwarnings | ||
|
|
||
| from django.utils.translation import gettext_lazy as _ | ||
|
|
||
|
|
@@ -110,3 +111,13 @@ | |
|
|
||
| PROJECT_CONTACT = True | ||
| PROJECT_CONTACT_RECIPIENTS = ['email@example.com'] | ||
|
|
||
| # Ref: https://adamj.eu/tech/2023/12/07/django-fix-urlfield-assume-scheme-warnings | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I followed the writeup available at: https://adamj.eu/tech/2023/12/07/django-fix-urlfield-assume-scheme-warnings
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So there is a warning we need to suppress, even if we set it explicitly? This is a bit weird.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems so, sorry. If you remove this "hack", you get an error. |
||
| filterwarnings( | ||
| "ignore", "The FORMS_URLFIELD_ASSUME_HTTPS transitional setting is deprecated." | ||
| ) | ||
| # This value will change from False to True in Django 6.0 | ||
| # Refs: | ||
| # - https://docs.djangoproject.com/en/5.2/ref/settings/#forms-urlfield-assume-https | ||
| # - https://docs.djangoproject.com/en/5.2/ref/forms/fields/#django.forms.URLField.assume_scheme | ||
| FORMS_URLFIELD_ASSUME_HTTPS = True | ||
Uh oh!
There was an error while loading. Please reload this page.