Skip to content

Commit 6e0c459

Browse files
committed
feat(django): Upgrade to 6.0
Signed-off-by: kiblik <5609770+kiblik@users.noreply.github.com>
1 parent 43b9dac commit 6e0c459

2 files changed

Lines changed: 1 addition & 20 deletions

File tree

dojo/settings/settings.dist.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,25 +2082,6 @@ def saml2_attrib_map_format(din):
20822082
warnings.filterwarnings("ignore", message="polymorphic.base.ManagerInheritanceWarning.*")
20832083
warnings.filterwarnings("ignore", message="PolymorphicModelBase._default_manager.*")
20842084

2085-
2086-
# The setting is here to avoid RemovedInDjango60Warning. It is here only for transition period.
2087-
# TODO: - Remove this setting in Django 6.0
2088-
# TODO: More info:
2089-
# Context:
2090-
# uwsgi-1 | File "/app/dojo/forms.py", line 515, in ImportScanForm
2091-
# uwsgi-1 | source_code_management_uri = forms.URLField(max_length=600, required=False, help_text="Resource link to source code")
2092-
# uwsgi-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2093-
# uwsgi-1 | File "/usr/local/lib/python3.11/site-packages/django/forms/fields.py", line 769, in __init__
2094-
# uwsgi-1 | warnings.warn(
2095-
# uwsgi-1 | django.utils.deprecation.RemovedInDjango60Warning: The default scheme will be changed from 'http' to 'https' in Django 6.0. Pass the forms.URLField.assume_scheme argument to silence this warning, or set the FORMS_URLFIELD_ASSUME_HTTPS transitional setting to True to opt into using 'https' as the new default scheme.
2096-
# +
2097-
# uwsgi-1 | File "/usr/local/lib/python3.11/site-packages/django/conf/__init__.py", line 214, in __init__
2098-
# uwsgi-1 | warnings.warn(
2099-
# uwsgi-1 | django.utils.deprecation.RemovedInDjango60Warning: The FORMS_URLFIELD_ASSUME_HTTPS transitional setting is deprecated.
2100-
warnings.filterwarnings("ignore", "The FORMS_URLFIELD_ASSUME_HTTPS transitional setting is deprecated.")
2101-
FORMS_URLFIELD_ASSUME_HTTPS = True
2102-
# Inspired by https://adamj.eu/tech/2023/12/07/django-fix-urlfield-assume-scheme-warnings/
2103-
21042085
if DEBUG:
21052086
# adding DEBUG logging for all of Django.
21062087
LOGGING["loggers"]["root"] = {

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ django-slack==5.19.0
1919
django-watson==1.6.3
2020
django-permissions-policy==4.28.0
2121
django-prometheus==2.4.1
22-
Django==5.2.11
22+
Django==6.0.2
2323
django-single-session==0.2.0
2424
djangorestframework==3.16.1
2525
html2text==2025.4.15

0 commit comments

Comments
 (0)