Initial commit
This commit is contained in:
9
env/lib/python3.10/site-packages/wagtail/test/context_processors.py
vendored
Normal file
9
env/lib/python3.10/site-packages/wagtail/test/context_processors.py
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
def do_not_use_static_url(request):
|
||||
def exception():
|
||||
raise Exception(
|
||||
"Do not use STATIC_URL in templates. Use the {% static %} templatetag (or {% versioned_static %} within admin templates) instead."
|
||||
)
|
||||
|
||||
return {
|
||||
"STATIC_URL": lambda: exception(),
|
||||
}
|
||||
Reference in New Issue
Block a user