Don't add context processors to the default set Django startproject created.
Create a folder for templates. Add it to settings.py:
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
os.path.join(BASE_DIR, 'my_project/templates'),
],
Create a template base.html with at least the following:
{% block content %} {% for content in feincms_page.content.main %} {{ content.render }} {% endfor %} {% endblock %}
0 comments:
Post a Comment