Opened 16 years ago

Last modified 13 years ago

#7714 closed

corrected documentation for {% url %} resolver — at Initial Version

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

there were two errors:

  1. ('client/(\d+)/$', 'app_name.app_views.client') originally ('client/(\d+)/$', 'app_views.client')

gives you an ImportError (ViewDoesNotExist)

  1. {% 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 %}

Change History (1)

by Viktor <viktor.nagy@…>, 16 years ago

Attachment: patch.txt added
Note: See TracTickets for help on using tickets.
Back to Top