Re: [Snowy] Annoying traceback email #2 :) Caught NoReverseMatch while rendering: Reverse for 'notes.views.note_index' with arguments '(u'guest', )' and keyword arguments '{}' not found.



These sorts of things should really be filed as bugs, instead of going
to the list.

On Sat, Oct 23, 2010 at 7:02 AM, Og Maciel <ogmaciel gnome org> wrote:
> Environment:
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/
> Django Version: 1.2.3
> Python Version: 2.6.6
> Installed Applications:
> ['core',
>  'api',
>  'accounts',
>  'django_openid_auth',
>  'notes',
>  'django.contrib.admin',
>  'django.contrib.admindocs',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.sites',
>  'django.contrib.humanize',
>  'registration',
>  'south',
>  'gravatar',
>  'autoslug',
>  'piston',
>  'pagination']
> Installed Middleware:
> ['django.middleware.common.CommonMiddleware',
>  'django.contrib.csrf.middleware.CsrfViewMiddleware',
>  'django.contrib.csrf.middleware.CsrfResponseMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.locale.LocaleMiddleware',
>  'snowy.accounts.middleware.LocaleMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.middleware.transaction.TransactionMiddleware',
>  'recaptcha_django.middleware.ReCaptchaMiddleware',
>  'pagination.middleware.PaginationMiddleware']
>
>
> Template error:
> In template /home/omaciel/hacking/git_snowy/templates/base.html, error
> at line 44
>   Caught NoReverseMatch while rendering: Reverse for
> 'notes.views.note_index' with arguments '(u'guest',)' and keyword
> arguments '{}' not found.
>   34 :                         {{ user }}
>
>
>   35 :                     </h3>
>
>
>   36 :                     <p><a href="{% url preferences %}">{%
> trans "preferences" %}</a> / <a href="{% url
> django.contrib.auth.views.logout %}">{% trans "log out" %}</a></p>
>
>
>   37 :                     {% else %}
>
>
>   38 :                     <p>{% trans "hello stranger! care to "
> %}<a href="{% url openid_login %}">{% trans "log in" %}</a>{% trans
> "?" %}</p>
>
>
>   39 :                     <!--<p><small>{% trans "not a member yet?"
> %} <a href="{% url registration.views.register %}">{% trans "Sign up."
> %}</a></small></p>-->
>
>
>   40 :                     {% endif %}
>
>
>   41 :                 </td>
>
>
>   42 :                 <td id="header-avatar">
>
>
>   43 :                     {% if user.is_authenticated %}
>
>
>   44 :                     <a href=" {% url notes.views.note_index
> user.username %} ">{% gravatar_img_for_user user 64 %}</a>
>
>
>   45 :                     {% endif %}
>
>
>   46 :                 </td>
>
>
>   47 :             </tr>
>
>
>   48 :         </table>
>
>
>   49 : {% block content-container %}
>
>
>   50 :         <table id="content-container" cellspacing="0" cellpadding="0">
>
>
>   51 :             <tr>
>
>
>   52 : {% block sidebar-container %}
>
>
>   53 :                 <td id="sidebar-container">
>
>
>   54 :                     <div id="sidebar">
>
>
> Traceback:
> File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py"
> in get_response
>  100.                     response = callback(request,
> *callback_args, **callback_kwargs)
> File "/usr/lib/python2.6/site-packages/django/views/generic/simple.py"
> in direct_to_template
>  18.     return HttpResponse(t.render(c), mimetype=mimetype)
> File "/usr/lib/python2.6/site-packages/django/template/__init__.py" in render
>  173.             return self._render(context)
> File "/usr/lib/python2.6/site-packages/django/template/__init__.py" in _render
>  167.         return self.nodelist.render(context)
> File "/usr/lib/python2.6/site-packages/django/template/__init__.py" in render
>  796.                 bits.append(self.render_node(node, context))
> File "/usr/lib/python2.6/site-packages/django/template/debug.py" in render_node
>  72.             result = node.render(context)
> File "/usr/lib/python2.6/site-packages/django/template/loader_tags.py" in render
>  125.         return compiled_parent._render(context)
> File "/usr/lib/python2.6/site-packages/django/template/__init__.py" in _render
>  167.         return self.nodelist.render(context)
> File "/usr/lib/python2.6/site-packages/django/template/__init__.py" in render
>  796.                 bits.append(self.render_node(node, context))
> File "/usr/lib/python2.6/site-packages/django/template/debug.py" in render_node
>  72.             result = node.render(context)
> File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py" in render
>  258.             return self.nodelist_true.render(context)
> File "/usr/lib/python2.6/site-packages/django/template/__init__.py" in render
>  796.                 bits.append(self.render_node(node, context))
> File "/usr/lib/python2.6/site-packages/django/template/debug.py" in render_node
>  72.             result = node.render(context)
> File "/usr/lib/python2.6/site-packages/django/template/defaulttags.py" in render
>  385.                         raise e
>
> Exception Type: TemplateSyntaxError at /
> Exception Value: Caught NoReverseMatch while rendering: Reverse for
> 'notes.views.note_index' with arguments '(u'guest',)' and keyword
> arguments '{}' not found.
>
>
> --
> Og B. Maciel
> GNOME Foundation Board of Directors
>
> omaciel foresightlinux org
> ogmaciel gnome org
> ogmaciel ubuntu com
>
> GPG Keys: D5CFC202
>
> http://www.ogmaciel.com (en_US)
> http://blog.ogmaciel.com (pt_BR)
> _______________________________________________
> snowy-list mailing list
> snowy-list gnome org
> http://mail.gnome.org/mailman/listinfo/snowy-list
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]