My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 46: Reverse for 'peoplecode.forum_index' with arguments '()' and keyword arguments '{}' not found
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  rwpoul...@gmail.com
Closed:  Dec 2008


 
Reported by wimfei...@gmail.com, Nov 29, 2008
What steps will reproduce the problem?
1. Followed installation instructions.

What is the expected output? What do you see instead?
At   http://localhost:8000/forum/movies    I expect to see a forum, instead
I get a template error. See appended error message below.

What version of the product are you using? On what operating system?
django-forum SVN-release 28
Django 1.0
Ubuntu 8.04

Please provide any additional information below.

Environment:

Request Method: GET
Request URL: http://localhost:8000/forum/skits/
Django Version: 1.0-final-SVN-unknown
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'peoplecode.adresbeheer',
 'peoplecode.address',
 'peoplecode.agenda',
 'peoplecode.almanac',
 'peoplecode.budget',
 'peoplecode.edit',
 'peoplecode.event',
 'peoplecode.export',
 'peoplecode.fee',
 'peoplecode.file',
 'peoplecode.fields',
 'peoplecode.forum',
 'peoplecode.general',
 'peoplecode.importbook',
 'peoplecode.info',
 'peoplecode.invite',
 'peoplecode.login',
 'peoplecode.labels',
 'peoplecode.messages',
 'peoplecode.people',
 'peoplecode.photo',
 'peoplecode.photobook',
 'peoplecode.photogallery',
 'peoplecode.search',
 'peoplecode.sharing',
 'peoplecode.signup',
 'peoplecode.selectionfield',
 'peoplecode.usersettings',
 'peoplecode.visit',
 'peoplecode.write']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware')


Template error:
In template /home/wim/peoplecode/forum/templates/forum_base.html, error at
line 4
   Caught an exception while rendering: Reverse for
'peoplecode.forum_index' with arguments '()' and keyword arguments '{}' not
found.
   1 : {% load i18n %}<html>


   2 : <head>


   3 : <title>{% block title %}{% endblock %}</title>


   4 : <link rel="alternate" type="application/rss+xml" title="All Latest
Posts via RSS" href=" {% url forum_index %} rss/" />


   5 : <link rel="alternate" type="application/atom+xml" title="All Latest
Posts via ATOM" href="{% url forum_index %}atom/" />


   6 : {% block extrahead %}{% endblock %}


   7 : </head>


   8 : <style type='text/css'><!--


   9 : body {


   10 :     font-family: Verdana;


   11 :     font-size: 10px;


   12 :     text-align: center;


   13 : }


   14 : 


Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in
get_response
  86.                 response = callback(request, *callback_args,
**callback_kwargs)
File "/home/wim/peoplecode/forum/views.py" in forum
  39.                             'form': form,
File "/usr/lib/python2.5/site-packages/django/views/generic/list_detail.py"
in object_list
  101.     return HttpResponse(t.render(c), mimetype=mimetype)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render
  176.         return self.nodelist.render(context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render
  768.                 bits.append(self.render_node(node, context))
File "/usr/lib/python2.5/site-packages/django/template/debug.py" in render_node
  71.             result = node.render(context)
File "/usr/lib/python2.5/site-packages/django/template/loader_tags.py" in
render
  97.         return compiled_parent.render(context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render
  176.         return self.nodelist.render(context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render
  768.                 bits.append(self.render_node(node, context))
File "/usr/lib/python2.5/site-packages/django/template/debug.py" in render_node
  81.             raise wrapped

Exception Type: TemplateSyntaxError at /forum/skits/
Exception Value: Caught an exception while rendering: Reverse for
'peoplecode.forum_index' with arguments '()' and keyword arguments '{}' not
found.

Original Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/django/template/debug.py", line
71, in render_node
    result = node.render(context)
  File "/usr/lib/python2.5/site-packages/django/template/defaulttags.py",
line 378, in render
    args=args, kwargs=kwargs)
  File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py", line
252, in reverse
    *args, **kwargs)))
  File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py", line
241, in reverse
    "arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'peoplecode.forum_index' with arguments '()'
and keyword arguments '{}' not found.


Dec 4, 2008
Project Member #1 rwpoul...@gmail.com
This appears to be due to the way you've moved forum into the 'peoplecode' module, so
unless 'forum' is still in the PYTHONPATH it will cause you problems. We aren't
seeing this particular error on any other configuration.

Can you please try moving 'forum' out of 'peoplecode' and see if that helps? If it is
still a problem I will re-open.
Status: Invalid
Owner: rwpoulton
Dec 6, 2008
Project Member #2 rwpoul...@gmail.com
You have not answered my questions on this yet; your issue with peoplecode.forum or
school.forum MUST be due to the setup of your PYTHONPATH or the way you've moved
forum nito the 'peoplecode' module.

Please try what I have suggested above, and please don't open any more tickets until
you have tried a standard install of Django as per the installation instructions.
Dec 8, 2008
#3 wimfei...@gmail.com
Hi Ross,

Thanks for your reply. I'm sorry I wasn't able to reply sooner. I didn't open up any 
other tickets, that must have been somebody else.

I probably misunderstood. I thought I had to co the forum app in the directory of my 
project. So where do I put it then, in the django directory?

Maybe I am asking an obvious question, but I sincerely do not know.

Thanks,

Wim 

Powered by Google Project Hosting