djangosnippets.org: Latest snippets tagged with 'class-based-views_1'https://djangosnippets.org/tags/class-based-views_1_1/2012-02-29T05:25:45.908656-06:00Easier and Faster than flatpages. Rendering templates by simpling calling by his path on the URL
2012-02-29T05:25:45.908656-06:00mariocesarhttps://djangosnippets.org/snippets/2698/<p>This is in my opinion a better way to have flat pages in a project. In the example with the url patterns settings:</p>
<pre><code>/ will render -> /pages/welcome.html
/contact will render -> /pages/contact.html
/products/ will render -> /pages/products/index.html
/products/pricing will render -> /pages/products/pricing.html
</code></pre>
Freely redistributable