aboutsummaryrefslogtreecommitdiffstats
path: root/LICENSE
diff options
context:
space:
mode:
authorSimon Law <simon.law@ecometrica.com>2012-07-25 12:51:26 -0400
committerSimon Law <simon.law@ecometrica.com>2012-07-25 12:51:26 -0400
commit5a1847309e7fa431c98565805d88a21a40d01406 (patch)
tree9aa1b5ac50efd0bd39f1a38130ec9d56e4a59302 /LICENSE
parenta6f0a53702a940bf055dadb3bf558aea49c6d862 (diff)
downloaddjango-wkhtmltopdf-5a1847309e7fa431c98565805d88a21a40d01406.tar.gz
django-wkhtmltopdf-5a1847309e7fa431c98565805d88a21a40d01406.tar.bz2
django-wkhtmltopdf-5a1847309e7fa431c98565805d88a21a40d01406.zip
MEDIA_URL and STATIC_URL overrides PDFTemplateResponse.get_override_settings()
MEDIA_URL and STATIC_URL used to be set only in get_context_data(), but there are apps such as staticfiles and Django Compressor where this won't work well. Instead, they need to be overridden at the settings level, not at the context level. This allows template context processors to populate a RequestContext with the right values. In addition, MEDIA_URL and STATIC_URL are now overridden as file:// URLs, based on MEDIA_ROOT and STATIC_ROOT. This allows developers to access these views in runserver, against their current codebase. It also means faster access for wkhtmltopdf, since the files are stored locally.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions