google-code-export / django-page-cms

Automatically exported from code.google.com/p/django-page-cms
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

I need to use 2 or more templates in my project #187

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hi, this issue not is a trouble, is a doubt, 
i need use to many templates, but i can't declare  it in a settings.py 
that is, my page 1 will use the template index.html, page 2 I used the 
template 2_column.html, I used the template page 3 forms.html 
i don't understand how is where is the template to use.

The CMS it's no bad, but even is young.

Please help me.

Original issue reported on code.google.com by net...@gmail.com on 3 Dec 2009 at 11:43

GoogleCodeExporter commented 9 years ago
You can use has many templates you want, here is the documentation on how to 
use 
them:

http://code.google.com/p/django-page-cms/source/browse/trunk/pages/settings.py#1
6

Just declare this variable in your settings.py:

DEFAULT_PAGE_TEMPLATE = 'pages/default.html'

PAGE_TEMPLATES = (
    ('pages/nice.html', 'nice one'),
    ('pages/cool.html', 'cool one'),
)

And just be sure that these templates exist at the right place in your template 
directory.

Original comment by batiste....@gmail.com on 4 Dec 2009 at 9:28