#4105: New tag to generate URLs for media files
---------------------------+------------------------------------------------
   Reporter:  Amr Mostafa  |                Owner:  adrian                
     Status:  closed       |            Component:  Template system       
    Version:  SVN          |           Resolution:  wontfix               
   Keywords:               |                Stage:  Design decision needed
  Has_patch:  1            |           Needs_docs:  0                     
Needs_tests:  0            |   Needs_better_patch:  0                     
---------------------------+------------------------------------------------
Comment (by SmileyChris):

 I really liked Amr's method, but I'm not convinced that it should check
 for the file first (you might be doing some tricky redirect or something
 in Apache or the like - we shouldn't be getting in the way of this).
 
 So here's a simpler take using the `simple_tag` decorator and
 appropriately documented.
 
 IMO this is the best solution of the bunch (of closed tickets) since it
 doesn't introduce the requirement for templates to use `RequestContext`.

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