Changes between Version 9 and Version 10 of Ticket #25598


Ignore:
Timestamp:
Jul 21, 2016, 10:27:36 AM (8 years ago)
Author:
Rostyslav Bryzgunov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25598 – Description

    v9 v10  
    11By default, `{% static '...' %}` tag just appends `STATIC_URL` in the path. When running on sub-path, using `SCRIPT_NAME` WSGI param, it results in incorrect static URL - it doesn't prepend `SCRIPT_NAME` prefix.
    22
    3 This problem can be solved with prepending `SCRIPT_NAME` in to `SCRIPT_URL` in `settings.py` but that doesn't work when `SCRIPT_NAME` is a ''dynamic value''.
     3This problem can be solved with prepending `SCRIPT_NAME` to `STATIC_URL` in `settings.py` but that doesn't work when `SCRIPT_NAME` is a ''dynamic value''.
    44
    55This can be easily added into default Django `static` tag and `django.contrib.staticfiles` tag as following:
Back to Top