django - FeinCMS Initial Installation: Templates -


so trying feincms , running , have working on backend cannot page load:

this how models.py setup:

page.register_templates({     'title': _('standard template'),     'path': 'base.html',     'regions': (         ('main', _('main content area')),         ('sidebar', _('sidebar'), 'inherited'),         ),     })  page.create_content_type(richtextcontent) page.create_content_type(mediafilecontent, type_choices=(     ('default', _('default')),     ('lightbox', _('lightbox')),     )) 

the error

templatedoesnotexist @ /test/  zipfel/base.html  django tried loading these templates, in order:  using loader django.template.loaders.filesystem.loader: using loader django.template.loaders.app_directories.loader:     /opt/local/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/django/contrib/auth/templates/zipfel/base.html (file not exist)     /opt/local/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/django/contrib/admin/templates/zipfel/base.html (file not exist)     /opt/local/library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages/django/contrib/admindocs/templates/zipfel/base.html (file not exist)     /library/python/2.7/site-packages/feincms/templates/zipfel/base.html (file not exist)     /library/python/2.7/site-packages/mptt/templates/zipfel/base.html (file not exist) 

now understand if put base.html file in either of directories should work.

2 questions:

what base.html contents need be? in order able place base.html in app folder have add path template_dirs?

the feincms installation has been rather tricky me far

i added absolute path template_dirs , allowed me place base.html wanted

in file placed following code , able view page:

{% load feincms_tags %}  <div id="content">     {% block content %}     {% content in feincms_page.content.main %}         {{ content.render }}     {% endfor %}     {% endblock %} </div>  <div id="sidebar">     {% block sidebar %}     {% content in feincms_page.content.sidebar %}         {{ content.render }}     {% endfor %}     {% endblock %} </div> 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -