Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/07/2013, 18:29
Adrian_io
 
Fecha de Ingreso: diciembre-2012
Mensajes: 11
Antigüedad: 11 años, 4 meses
Puntos: 0
Respuesta: Crear un include

hice el
Código Python:
Ver original
  1. {% include('header.html') %}

pero me da error.

Invalid block tag: 'include('header.html')'
Request Method: GET
Request URL: http://localhost:8000/inicio/
Django Version: 1.5.1
Exception Type: TemplateSyntaxError
Exception Value:
Invalid block tag: 'include('header.html')'
Exception Location: C:\Python27\lib\site-packages\django\template\base.py in invalid_block_tag, line 328
Python Executable: C:\Python27\python.exe
Python Version: 2.7.5
Python Path:
['C:\\xampp\\htdocs\\Django\\blog',
'C:\\windows\\SYSTEM32\\python27.zip',
'C:\\Python27\\DLLs',
'C:\\Python27\\lib',
'C:\\Python27\\lib\\plat-win',
'C:\\Python27\\lib\\lib-tk',
'C:\\Python27',
'C:\\Python27\\lib\\site-packages',
'C:\\Python27\\lib\\site-packages\\PIL']

supongo que sera porque hay que especificar la ruta como lo hago?