[pyar] No encuentro el bloque {% block head %}

Diego Uribe Gamez diego.uribe.gamez en gmail.com
Jue Oct 6 14:42:45 ART 2011


En Django resulta que:

los bloques están haciendo una llamada a un ruta dentro de mi servidor y no
la concreta, me muestra un error la terminal y la cuestión es
que necesito ya se activar la ruta o cambiarla, la verdad es que no
encuentro donde esta la ruta, ya intente con ( grep -r "olwidget.js"
/var/django/test ) y nada, dejo como dato las salidas de la terminal, html y
archivo de origen, les agradecería una ayuda para arreglar las rutas
de /media/olwidget/css/olwidget.css
y /media/olwidget/js/olwidget.js

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SALIDA DE LA TERMINAL:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
root en servidor:/var/django/test_project# python manage.py runserver
Validating models...
0 errors found
Django version 1.3.1, using settings 'test_project.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
/usr/local/lib/python2.6/dist-packages/django/template/loaders/filesystem.py:58:
DeprecationWarning:
'django.template.loaders.filesystem.load_template_source' is deprecated; use
'django.template.loaders.filesystem.Loader' instead.
  DeprecationWarning
/usr/local/lib/python2.6/dist-packages/django/template/loaders/app_directories.py:71:
DeprecationWarning:
'django.template.loaders.app_directories.load_template_source' is
deprecated; use 'django.template.loaders.app_directories.Loader' instead.
  DeprecationWarning
[06/Oct/2011 12:06:38] "GET / HTTP/1.1" 200 3253
[06/Oct/2011 12:06:38] "GET /media/css/style.css HTTP/1.1" 200 2049
[06/Oct/2011 12:06:41] "GET /tree/1/edit HTTP/1.1" 200 2494
[06/Oct/2011 12:06:41] "GET /media/css/style.css HTTP/1.1" 200 2049
[06/Oct/2011 12:06:49] "GET /tree/1/edit HTTP/1.1" 200 2494
[06/Oct/2011 12:06:49] "GET /media/olwidget/css/olwidget.css HTTP/1.1" 404
1809
[06/Oct/2011 12:06:49] "GET /media/olwidget/js/olwidget.js HTTP/1.1" 404
1803

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SALIDA HTML:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"
/>
        <link rel="stylesheet" type="text/css" media="all"
href="/media/css/style.css" />
        <title></title>
        <link href="/media/olwidget/css/olwidget.css" type="text/css"
media="all" rel="stylesheet" />
<script type="text/javascript" src="
http://openlayers.org/api/2.10/OpenLayers.js"></script>
<script type="text/javascript"
src="/media/olwidget/js/olwidget.js"></script>
<script type="text/javascript" src="//
maps.google.com/maps?file=api&v=2&key=ABQIAAAARaukg-vCnyMKCmf7W1mdOhQCULP4XOMyhPd8d_NrQQEO8sT8XBTLlWMmpTlKIHpKhd2GXLaZc6gHJA
"></script>
    </head>

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ARCHIVO ORIGEN:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"
/>
        <link rel="stylesheet" type="text/css" media="all"
href="{{MEDIA_URL}}css/style.css" />
        <title>{% block title %}{% endblock %}</title>
        {% block head %}{% endblock %}
    </head>


-- 
 *Diego Alonso Uribe Gamez*
------------------------------

*Desarrollador web*

Twitter: @DiegoUG <http://www.twitter.com/DiegoUG>

Google+: http://gplus.to/diegoug
------------------------------
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20111006/27749954/attachment.html>


More information about the pyar mailing list