#4105: [Patch] New tag to generate URLs for media files
---------------------------+------------------------------------------------
Reporter: Amr Mostafa | Owner: adrian
Status: new | Component: Template system
Version: SVN | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
---------------------------+------------------------------------------------
Comment (by Amr Mostafa):
Thanks for taking a look ;-), It's perfectly possible to do this in the
userland (with Django, what isn't anyway ;-) but I believe that this's
something normally expected from Django itself, and is needed by almost
everybody. Implementation as a tag is more natural to the user IMHO.
I thought the existence check is useful because:
* It will save your server from the 404 hits (I assume user would also
have other resources than CSS/Javascript, e.g. images).
* It's easier to spot the empty strings than it's to spot typos when you
view-source your template when you suspect something is wrong.
Thanks again, I'd love to get more feedback!
--
Ticket URL: <http://code.djangoproject.com/ticket/4105#comment:3>
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
-~----------~----~----~----~------~----~------~--~---