tickets: 4278
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4278 | 2007-05-11 21:15:28 | 2014-11-23 21:02:17 | 2022-03-06 03:30:59.173728 | Accepted | closed | Template system | New feature | Normal | dev | fixed | get_template should accept a dirs argument | The function django.template.loader.find_template_source already accepts a dirs argument, which makes it possible to override TEMPLATE_DIRS. However, get_template and other functions are not aware of find_template_source's dirs argument. The attached patch adds this dirs argument, with a default value of None, to a few additional functions. After applying the patch, I can do: render_to_response('some_template_file.html', dirs=(SOME_OTHER_DIRECTORY,)) | berkerpeksag | amcnabb | tplrf-patched | 0 | 1 | 0 | 0 | 0 | 0 |