Note that there are some explanatory texts on larger screens.

plurals
  1. POFeinCMS Initial Installation: Templates
    primarykey
    data
    text
    <p>So I am trying to get FeinCMS up and running and I have it working on the backend but I cannot get a page to load:</p> <p>this is how my models.py is setup:</p> <pre><code>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')), )) </code></pre> <p>The error I get is </p> <pre><code>TemplateDoesNotExist at /test/ zipfel/base.html Django tried loading these templates, in this 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 does not exist) /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/admin/templates/zipfel/base.html (File does not exist) /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/contrib/admindocs/templates/zipfel/base.html (File does not exist) /Library/Python/2.7/site-packages/feincms/templates/zipfel/base.html (File does not exist) /Library/Python/2.7/site-packages/mptt/templates/zipfel/base.html (File does not exist) </code></pre> <p>Now I understand that if I put a base.html file in either of those directories it should work. </p> <p>2 questions:</p> <p>What does the base.html contents need to be? In order to be able to place the base.html in the app folder do I have to add that path to TEMPLATE_DIRS? </p> <p>The FeinCMS installation has been rather tricky for me thus far </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload