Vale, he probado como me has dicho pero ahora me marca este error:
syntax error
Request Method: POST
Request URL:
http://127.0.0.1:8000/obtpos/
Django Version: 1.4
Exception Type: error
Exception Value:
syntax error
Exception Location: /usr/lib/python2.7/re.py in _compile, line 244
Python Executable: /usr/bin/python
Python Version: 2.7.2
Python Path:
['/usr/local/lib/python2.7/dist-packages/requests-0.13.6-py2.7.egg/requests/packages',
'/home/wolvelopez/Programacion/mitapa',
'/usr/local/lib/python2.7/dist-packages/requests-0.13.6-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/googlemaps-1.0.2-py2.7.egg',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'~/modules']
Server time: mié, 19 Sep 2012 13:24:14 +0200
Error during template rendering
In template /home/wolvelopez/Programacion/mitapa/public/plantillas/lugarescercanos.html, error at line 12
syntax error
2
3 {% block estilo %}
4 {% endblock %}
5
6 {% block contenido %}
7 <h1>Lugares Cercanos</h1>
8 <div id="lugarescarcanos">
9 {% for item in datos %}
10 <div id="lugarescercanos2">
11 <p>{{ item.local }}</p>
12
<p><a href="{% url 'principal.views.selecciondeLocal' item.ref %}">Añadir Tapa</a></p>
13 </div>
14 {% empty %}
15 <p>No hay lugares cercanos.</p>
16 {% endfor %}
17 Referencia: {{ referencia }}
18 </div>
19 {% endblock %}
20