-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remove settings import from install instructions. #1528
Conversation
The import of settings is no longer required after django-commons#1349
Codecov Report
@@ Coverage Diff @@
## main #1528 +/- ##
=======================================
Coverage 85.87% 85.87%
=======================================
Files 35 35
Lines 1883 1883
Branches 274 274
=======================================
Hits 1617 1617
Misses 187 187
Partials 79 79 Continue to review full report at Codecov.
|
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.
Thanks! This makes the installation instructions more consistent.
Now that I look at the snippet again I worry a bit about potential security implications. The default SHOW_TOOLBAR_CALLBACK
does make this safe but I don't know whether that's good defense in depth.
I think it's sufficient protection. Asking users to put |
Unfortunately that's not true. Dealing with docker causes folks to make changes to it. And then people who deploy to remote servers will also change it. Though we should add a check/warning that identifies when the callback has been changed from the default and the toolbar is running with DEBUG=False. Or something that covers that case. |
I think we should add a big warning to the Thanks @adamchainz ! |
+1 to that. That would be the same kind of thing we'd do for Django core: sensible defaults, with the ability to override if required with warnings. |
The import of settings is no longer required after #1349