Override front page template
User story: I am administering an LDH Middleware instance. I want to override the front page, so I can customise it.
Suggested solution:
Modify def home(request)
in purist/views.py
to load /var/opt/purist/brand/home.html
if it exists.
Success:
If /var/opt/purist/brand/home.html
exists when the site is started, it is used. Otherwise, purist/jinja2/purist/home.html
is used.
Notes:
-
If the admin needs to run
collectstatic
after adding/removing/changing the template, that's fine. "brand" should be a static file location, so this shouldn't be necessary. Unless it is :) -
Dynamic updates (no restart required) is not a requirement. But if it's easier to implement that way, that's fine.