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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -