#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)
Change History (4)
by , 16 years ago
comment:1 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
root urls.py file