#5961: Use template_name for all views in comments
----------------------------------------------+-----------------------------
Reporter:  Ryan Kaskel <[EMAIL PROTECTED]>  |       Owner:  nobody              
   
  Status:  new                                |   Component:  
django.contrib.comments
 Version:  SVN                                |    Keywords:  comments          
     
   Stage:  Unreviewed                         |   Has_patch:  1                 
     
----------------------------------------------+-----------------------------
 In django.contrib.comments, all the templates locations and names are hard
 coded in the views themselves. It expected to find them in
 TEMPLATE_DIRS[X]/comments. I recently used the comments app for my own
 project but didn't want to put them in that directory. This  trivial
 change adds the template_name parameter to each view function and it
 defaults to the template location currently in the code. You would need to
 make a urls.py somewhere that has views that point to the comment system's
 views and pass a template_name, like how most everything else works (e.g.
 django.contrib.auth.views.login). A simple change but it makes the system
 a bit more flexible for those who want to use it.

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