DjangoBB

Django based forum engine

  • You are not logged in.

#1 March 25, 2010 18:48:26

djero
Registered: 2010-03-25
Posts: 2
Reputation: +  0  -
Profile   Send e-mail  

Template syntax error

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"

Edited djero (March 25, 2010 18:49:26)

Offline

#2 March 26, 2010 08:53:46

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 281
Reputation: +  6  -
Profile   Send e-mail  

Template syntax error

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

Offline

#3 March 26, 2010 13:15:59

djero
Registered: 2010-03-25
Posts: 2
Reputation: +  0  -
Profile   Send e-mail  

Template syntax error

I have it in my urls.py - I've copied all project from djangobb official website.

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version