Remove default django template loaders. - #11316
Conversation
75bf799 to
a1c695c
Compare
|
Thanks for the pull request, @mtyaka! I've created OSPR-1084 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. |
|
👍 |
|
@mtyaka sorry for my ignorance, but I notice that cms settings don't include the Mako loaders. Do we not use Mako in Studio?? (I know this sounds like a really newb question...) |
|
We do use Mako all over Studio. How is it being loaded? Why don't we need to make similar changes in "cms"? |
|
@nedbat Yeah, that is a bit confusing. It took me a while to figure out how template rendering works in edx-platform. Most of the time, we render main mako templates using Some parts of the LMS (most notably the course wiki) use the I guess in the CMS we never do that (include mako templates in django templates). We render mako templates directly using Note that we could easily replace |
|
Could you add a comment about this in the settings where we set up the Mako loaders? Then we are good to go. |
Mako filesystem/app_directories loaders already wrap default django template loaders. Mako loaders delegate the `load_template_source` method to the base loader that they wrap, so there's no reason to explicitly include the two django loaders in the settings.
a1c695c to
434f196
Compare
|
@nedbat I added some comments to the settings and to the |
|
@nedbat It sounds like you are happy with this - can we get your formal +1? And/or are we waiting for further review? |
|
@mtyaka @nedbat @Kelketek -- sorry I am just now jumping in on this PR so forgive me while I get up to speed. Overall the change appears docile, however I am wondering if this is simply a code cleanup exercise or if the system's behavior is actually being affected by the change? It seems we are just doing some cleanup here? @ziafazal @saleem-latif, FYI |
|
@mattdrayer Correct, this is just code cleanup, it should not have any effect on the way the system behaves. |
|
👍 |
|
👍 Sorry for the delay. |
|
Thanks! |
Remove default django template loaders.
Mako filesystem/app_directories loaders already wrap default django template loaders.
Mako loaders delegate the
load_template_sourcemethod to the base loader that they wrap, so there's no reason to explicitly include the two django loaders in the settings.Partner information: 3rd party-hosted open edX instance
JIRA ticket: https://openedx.atlassian.net/browse/OSPR-1084
Sandbox URLs: TBD