Search - User list
Full Version: Template syntax error
Root » The Other » Template syntax error
1
djero
Hello.

In my new djangobb installation I've got following error:

TemplateSyntaxError at /
Caught an exception while rendering: u'djangobb' is not a registered namespace

Original Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/template/debug.py", line 71, in render_node
    result = node.render(context)
  File "/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/template/defaulttags.py", line 382, in render
    raise e
NoReverseMatch: u'djangobb' is not a registered namespace


What's wrong with my code?

Error is here ("{% url djangobb:forum_feed "posts" %}"):

{% endif %}
15		<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}forum/js/markitup/skins/markitup/style.css" />
16		<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}forum/js/markitup/sets/bbcode/style.css" />
17	
18		<link rel="alternate" type="application/atom+xml" href="{% url djangobb:forum_feed "posts" %}" title="{% trans "Latest posts on forum" %}" />
19		<link rel="alternate" type="application/atom+xml" href="{% url djangobb:forum_feed "topics" %}" title="{% trans "Latest topics on forum" %}" />
20	
21		<link rel="shortcut icon" href="{{ MEDIA_URL }}forum/favicon.png" type="image/png" />
22		<script type="text/javascript">
23			var MEDIA_URL = "{{ MEDIA_URL }}";
24			var POST_PREVIEW_URL = "{% url djangobb:post_preview %}";
25		</script>


In file "djangobb_forum/templates/forum/base.html"
slav0nic
http://hg.djangobb.org/djangobb/file/a9225f33cd74/djangobb/urls.py#l36

(r'^forum/', include('djangobb_forum.urls', namespace='djangobb')),


ps: u missing namespace='djangobb' in urls
djero
I have it in my urls.py - I've copied all project from djangobb official website.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB