#9941: {% url ... %} template tag may fail when not using a settings module
--------------------------------------+-------------------------------------
          Reporter:  Eftarjin         |         Owner:  nobody
            Status:  new              |     Milestone:        
         Component:  Template system  |       Version:  1.0   
        Resolution:                   |      Keywords:        
             Stage:  Unreviewed       |     Has_patch:  0     
        Needs_docs:  0                |   Needs_tests:  0     
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Changes (by Eftarjin):

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

Comment:

 The described workaround is bad as it breaks
 django.core.management.execute_from_command_line (ie manage.py) by causing
 it to raise '''!RuntimeError: Settings already configured.'''

 Instead, i added the following to my url config, so that {% url django-
 admindocs-docroot as docroot %}  wouldn't fail in the admin :
 {{{
 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
 }}}

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