Skip to content

Conversation

@Tosinibikunle
Copy link
Contributor

@Tosinibikunle Tosinibikunle commented Dec 16, 2025

added global settings stubs support for django 6.0 #2944

SECURE_CSP_REPORT_ONLY: Mapping[str, Collection[str] | str]

####################
# django-stubs-ext settings #
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not our settings, they are not related to django-stubs-ext

@@ -1,7 +1,4 @@
django.conf.FORMS_URLFIELD_ASSUME_HTTPS_DEPRECATED_MSG
django.conf.global_settings.FORMS_URLFIELD_ASSUME_HTTPS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This setting is missing from global_settings.py

# django-stubs-ext settings #
####################

TASKS: dict[str, dict[str, Any]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, move these settings to proper locations in the file.

# RemovedInDjango60Warning: It's a transitional setting helpful in early
# adoption of "https" as the new default value of forms.URLField.assume_scheme.
# Set to True to assume "https" during the Django 5.x release cycle.
FORMS_URLFIELD_ASSUME_HTTPS: bool
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the outdated comment too

@intgr intgr changed the title added stubs for new global settings in Django 6.0 Django 6.0: add new global settings Dec 22, 2025
@intgr intgr added this to the Django 6.0 support milestone Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants