Как мне позвонить на header.html
?Это моя структура папок.У меня TemplateSyntaxError at /
.
- Project Name
- app
- home
- templates //will contain all the views
- home.html
- views..py
- templates //will contain all the scripts,styles
- header.html
Вот мой код: Home/templates/home.html
{% extends 'header.html' %}
{% block content %}
<body>
</body>
{% endblock content %}
ОБНОВЛЕНИЕ : Вот мои настройки.1012 *
APP_ROOT = os.path.join(BASE_DIR,'apps')
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
APP_ROOT + '/home/templates',
APP_ROOT + '/templates',
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages'
],
},
},
]