Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#8130 closed (invalid)

url pattern resolving doesn't work for urls that have groups (ex: admin)

Reported by: alperkanat Owned by: nobody
Component: Core (Other) Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

this is the line in urls.py for admin app:

url(r'admin/(.*)', admin.site.root, name='admin_page'),

i'm calling this within the template like this:

{% url admin_page %} - django can't resolve and match the part.. it says:

TemplateSyntaxError at /tr/blog/
Could not parse the remainder: ' from '

If I write any word I want (instead of part) in {% url admin_page %} then it would work fine....

Attachments (2)

urls.py (772 bytes ) - added by alperkanat 16 years ago.
root urls.py file
sidebar.html (4.3 KB ) - added by alperkanat 16 years ago.
sidebar.html which calles admin_page named url

Download all attachments as: .zip

Change History (4)

by alperkanat, 16 years ago

Attachment: urls.py added

root urls.py file

by alperkanat, 16 years ago

Attachment: sidebar.html added

sidebar.html which calles admin_page named url

comment:1 by James Bennett, 16 years ago

Resolution: invalid
Status: newclosed

This is a usage/coding error question, not a bug report, and as such should go to the django-users mailing list of the #django IRC channel.

comment:2 by (none), 16 years ago

milestone: post-1.0

Milestone post-1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top