#18254: Add support for `as <varname>` to the staticfiles {% static %} template
tag.
-------------------------------------+------------------------------------
     Reporter:  melinath             |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  contrib.staticfiles  |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+------------------------------------
Changes (by jezdez):

 * needs_better_patch:   => 0
 * stage:  Unreviewed => Accepted
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Adding an optional as variable seems like a sensible feature request,
 indeed.

 FWIW, as a work around you can use protocol relative URLs, e.g.
 `STATIC_URL = "//www.example.com/"` or subclass the default
 `STATICFILES_STORAGE` backend, implementing its `url`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18254#comment:1>
Django <https://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.

Reply via email to