#15252: get_static_url in static templatetags ---------------------------+------------------------------------------------ Reporter: ohardy | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: SVN Keywords: | Triage Stage: Unreviewed Has patch: 0 | ---------------------------+------------------------------------------------ Hello,
When using the settings STATICFILES_STORAGE, it's the storage that should return the url. For example, a tag of this type works very well: {{{#!python @register.simple_tag() def get_static_url(filepath): if storage.exists(filepath): return storage.url(filepath) return None }}} and so STATIC_URL is not required anymore -- Ticket URL: <http://code.djangoproject.com/ticket/15252> 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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.