Tethys Platform Forum

A place for developers and users of Tethys Platform to ask questions, share ideas, and get technical support.
For more information about Tethys Platform visit our Home Page.


You are not connected. Please login or register

Example Question about Django Templating

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Example Question about Django Templating on Tue Jun 16, 2015 2:41 pm

Admin


Admin
I'm encountering an error when loading the page. I think it is a problem with my template. Here is my template code:


{% extends "death_star/base.html" %}

{% load tethys_gizmos %}

{% block app_navigation_items %}
<li class="title">App Navigation</li>
<li><a href="{% url 'death_star:home' %}">Home</a></li>
<li><a href="">Jobs</a></li>
<li><a href="">Results</a></li>
<li class="title">Steps</li>
<li><a href="{% url 'death_star:new_page' %}">1. Datasets & WPS</a></li>
<li class="active"><a href="{% url 'death_star:spatial_page' %}">2. Spatial Datasets</a></li>
<li><a href="{% url 'death_star:upload_page' %}">3. Upload</a></li>
<li class="separator"></li>
<li><a href="">Begin</a></li>
{% endblock %}

{% block app_content %}
<h1>Spatial Page</h1>
<ul>
{% for layer in layers %}
<li><a href="{{ layer.wms.openlayers }}">{{ layer.name }}</a></li>

</ul>

{% gizmo map_view map_view_options %}

{% endblock %}

{% block app_actions %}
{% endblock %}

Here is the error I'm encountering:

TemplateSyntaxError at /apps/death-star/spatial-page/
Invalid block tag: 'endblock', expected 'empty' or 'endfor'
Request Method: GET
Request URL: http://localhost:8000/apps/death-star/spatial-page/
Django Version: 1.7.8
Exception Type: TemplateSyntaxError
Exception Value:
Invalid block tag: 'endblock', expected 'empty' or 'endfor'
Exception Location: /usr/lib/tethys/lib/python2.7/site-packages/django/template/base.py in invalid_block_tag, line 343
Python Executable: /usr/lib/tethys/bin/python
Python Version: 2.7.6
Python Path:
['/Users/swainn/.tethyscluster/plugins',
'/Users/swainn/projects/tethysdev/tethys',
'/Users/swainn/projects/tethysdev/apps/tethysapp-parleys_creek_management',
'/usr/lib/tethys/lib/python2.7/site-packages/xlrd-0.9.3-py2.7.egg',
'/Users/swainn/projects/tethysdev/apps/tethysapp-canned_gssha',
'/Users/swainn/projects/tethysdev/apps/tethysapp-gsshaindex',
'/Users/swainn/projects/tethysdev/apps/tethysapp-observed_data',
'/usr/lib/tethys/lib/python27.zip',
'/usr/lib/tethys/lib/python2.7',
'/usr/lib/tethys/lib/python2.7/plat-darwin',
'/usr/lib/tethys/lib/python2.7/plat-mac',
'/usr/lib/tethys/lib/python2.7/plat-mac/lib-scriptpackages',
'/usr/lib/tethys/Extras/lib/python',
'/usr/lib/tethys/lib/python2.7/lib-tk',
'/usr/lib/tethys/lib/python2.7/lib-old',
'/usr/lib/tethys/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/usr/lib/tethys/lib/python2.7/site-packages',
'/usr/lib/tethys/src']
Server time: Tue, 16 Jun 2015 20:39:25 +0000

View user profile http://tethys.forumotion.com

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum