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
Fixed #29606 -- Added type check for ALLOWED_HOSTS setting. #14149
Fixed #29606 -- Added type check for ALLOWED_HOSTS setting. #14149
Conversation
1ef6e31
to
76e4277
Compare
@felixxm This is ready for another review - the test failure was just a flaky test |
@tim-mccurrach This is ready for another review - I think it's addressing all the feedback across all the PRs now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AdamDonna
Looks good, just a few small changes requested.
Also, this PR should be a single commit. If you're able to, squash these commits to a single commit and then force push it.
df5cec9
to
dee8a07
Compare
Great. I've fixed up the last comments, then squashed. 👍 |
@AdamDonna Thanks for updates 👍 However I don't think we need a separate system check, it should be enough to add diff --git a/django/conf/__init__.py b/django/conf/__init__.py
index 03bf923bb2..3f387a5ffc 100644
--- a/django/conf/__init__.py
+++ b/django/conf/__init__.py
@@ -141,6 +141,7 @@ class Settings:
mod = importlib.import_module(self.SETTINGS_MODULE)
tuple_settings = (
+ "ALLOWED_HOSTS",
"INSTALLED_APPS",
"TEMPLATE_DIRS",
"LOCALE_PATHS", Checking types of elements it's not crucial, IMO. |
dee8a07
to
fb7c876
Compare
@felixxm @tim-mccurrach Thanks for your work on this so far. I've revised the implementation to be more in keeping with Tim's comment. Does any documentation need to change as a result of this? |
@AdamDonna Thanks 👍 Docs changes are not needed. |
fb7c876
to
cdd0b21
Compare
I added |
Literally just the same as other people have pushed up but having made changes for feedback that wasn't addressed. #13927
I attempted to contribute to the existing fix but there were permission issues