Opened 16 years ago
Last modified 13 years ago
#7714 closed
corrected documentation for {% url %} resolver — at Version 1
Reported by: | V | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | url resolver | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
there were two errors:
('^client/(\d+)/$', 'app_name.app_views.client')
originally('^client/(\d+)/$', 'app_views.client')
gives you an ImportError (ViewDoesNotExist)
{% url app_name.app_views.client client.id %}
originally{% url app_views.client client.id %}
simply doesn't work
to check I did:
- startapp app_name
- add urls.py to the main urls.py as in the docs
- add urls.py to app_name/urls.py as shown above
- creates app_views.py with view client that gives back
{% url app_views.client client.id %}
Note:
See TracTickets
for help on using tickets.
Unbroke description.