-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #2109: Recursively unwrap loaders to support template partials #2117
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
0c6ebe8
9ec1578
7b5c194
f7bb5a4
868e01f
54eda1b
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
# Quick-start development settings - unsuitable for production | ||
|
||
DEBUG = False | ||
SECRET_KEY = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" | ||
|
||
INTERNAL_IPS = ["127.0.0.1"] | ||
|
@@ -27,6 +28,10 @@ | |
"django.contrib.messages", | ||
"django.contrib.staticfiles", | ||
"debug_toolbar", | ||
# We are not actively using template-partials; we just want more nesting | ||
# in our template loader configuration, see | ||
# https://github.com/django-commons/django-debug-toolbar/issues/2109 | ||
"template_partials", | ||
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. Should we always be testing with template partials? I think with the django-csp tests, we have specific tests that install the package and test against it. That said, this is likely to be a short-time thing. Both django-csp and template-partials are very likely to be merged to core in the 6.x series. 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 does feel a bit bad, I agree. Another way to test this would have been to add a mock loader with a We will have to revisit this when template-partials is merged (hopefully), either by switching to a different package which also wraps the cached loader or by adding the relevant testing code to our project. |
||
"tests", | ||
] | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ deps = | |
selenium>=4.8.0 | ||
sqlparse | ||
django-csp | ||
django-template-partials | ||
passenv= | ||
CI | ||
COVERAGE_ARGS | ||
|
Uh oh!
There was an error while loading. Please reload this page.