#7714: corrected documentation for {% url %} resolver
------------------------------------+---------------------------------------
          Reporter:  V              |         Owner:  nobody      
            Status:  new            |     Milestone:              
         Component:  Documentation  |       Version:  SVN         
        Resolution:                 |      Keywords:  url resolver
             Stage:  Unreviewed     |     Has_patch:  1           
        Needs_docs:  0              |   Needs_tests:  0           
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by mtredinnick):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Old description:

> 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 %}

New description:

 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 %}`

Comment:

 Unbroke description.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7714#comment:1>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to