#10053: Incorrect pydoc in
django.template.loaders.app_directories.load_template_source
-----------------------------+----------------------------------------------
 Reporter:  kylev            |       Owner:  nobody    
   Status:  new              |   Milestone:            
Component:  Template system  |     Version:  1.0       
 Keywords:                   |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 The pydoc for this code is misleading:

 {{{
 """
 Wrapper for loading templates from "template" directories in
 INSTALLED_APPS
 packages.
 """
 }}}

 In fact, the code builds the template path thusly:

 {{{
 template_dir = os.path.join(os.path.dirname(mod.__file__), 'templates')
 }}}

 Please fix the pydoc to say "templates/" as it will reduce frustration a
 little when building self-contained apps.  It might also be useful to
 mention in tutorials that this functionality is in place by default, since
 it alleviates the need to fiddle with the project-wide TEMPLATE_DIRS
 setting.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10053>
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