django - How to automatically map url to template tree? -
let's suppose have following templates files layout:
templates/ base.html about/ company/ history.html
base.html
contains page layout , included in every other template.
and want every url automatically uses corresponding template.
example, request http://site/about/company/history/
should render templates/about/company/history.html
template.
site static except base template includes.
is standard method doing this?
as far know direct_to_template
can work template.
and next step nice put static content behind templates.
Comments
Post a Comment