#7714: corrected documentation for {% url %} resolver
---------------------------+------------------------------------------------
Reporter: V | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: SVN
Keywords: url resolver | Stage: Unreviewed
Has_patch: 1 |
---------------------------+------------------------------------------------
there were two errors:
1. ('^client/(\d+)/$', 'app_name.app_views.client') originally
('^client/(\d+)/$', 'app_views.client')
gives you an ImportError (ViewDoesNotExist)
2. {% url app_name.app_views.client client.id %} originally {% url
app_views.client client.id %}
simply doesn't work
to check I did:
1. startapp app_name
2. add urls.py to the main urls.py as in the docs
3. add urls.py to app_name/urls.py as shown above
4. creates app_views.py with view client that gives back {% url
app_views.client client.id %}
--
Ticket URL: <http://code.djangoproject.com/ticket/7714>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---