1👍
✅
The second view is using the render
shortcut, so the context processors are run, which includes the STATIC_URL
variable in the context. The first view uses the old render_to_response
shortcut, which by default does not run context processors. Change it to use render
.
Source:stackexchange.com