Closed tyliec closed 8 months ago
As recommended by @stefanw here, this PR introduces:
uipa_org/theme/urls.py
uipa_org/templates/
For anyone else looking at this PR, the way you can introduce new template overrides is as follows:
froide/templates
uipa_org/templates
{% block < > %}
This settings code does the magic of importing any new template file automatically under the uipa_org/templates directory.
For introducing any new url routing, look at uipa_org/theme/urls.py's urlpatterns variable here: https://github.com/CodeWithAloha/uipa/blob/3288d936ef84412d43e7cd39251efecdbbd9fac1/uipa_org/theme/urls.py#L59-L60.
urlpatterns
Demo Image
Awesome!
Description
As recommended by @stefanw here, this PR introduces:
uipa_org/theme/urls.py
uipa_org/templates/
Instructions
For anyone else looking at this PR, the way you can introduce new template overrides is as follows:
froide/templates
and find the correct file/section you are trying to edit, and replicate the same structure underuipa_org/templates
{% block < > %}
statements match the section you are trying to overrideThis settings code does the magic of importing any new template file automatically under the
uipa_org/templates
directory.For introducing any new url routing, look at
uipa_org/theme/urls.py
'surlpatterns
variable here: https://github.com/CodeWithAloha/uipa/blob/3288d936ef84412d43e7cd39251efecdbbd9fac1/uipa_org/theme/urls.py#L59-L60.Example
Demo Image