Are you using Django 1.0? URL naming patterns (http://
docs.djangoproject.com/en/dev/topics/http/urls/#id2) were not
introduced until 1.0. From the looks of the exception, Django is
trying to build the path to your view by appending the argument in the
{% url %} tag to your app name.

python manage.py --version

That will get you the current Django version you're running.

On Sep 15, 4:28 pm, catsclaw <[EMAIL PROTECTED]> wrote:
> Hi all --
>
>    There's something really screwed up with the urlresolver system,
> and I haven't the faintest idea what to do to begin debugging it.  I
> have a template with the following tag in it:
>
> {% url myapp-login %}
>
> ... and the following code in my urls.py configuration ...
>
>     url(r'^myapp/login/$', 'myapp.users.login', name='myapp-login'),
>
>    This wasn't working on my home machine last night, but was working
> on my office machine this morning, with identical code and
> configuration running in both places.  Now, this code throws a
> TemplateSyntaxError "Caught an exception while rendering: Reverse for
> 'mysite.myapp-login' with arguments '()' and keyword arguments '{}'
> not found."
>    The only change I made in the interim was in the view code -- I
> changed the line:
>
>          print "user: " + request.user
>
>    ... to:
>
>          print "user: " + request.user.username
>
>    Changing the line back does not solve the problem, nor does
> restarting the server.
>
>    Does anyone have any idea what's going wrong here?
>
> -- Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to