Changes between Version 9 and Version 10 of Ticket #25598
- Timestamp:
- Jul 21, 2016, 10:27:36 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25598 – Description
v9 v10 1 1 By 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. 2 2 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''.3 This 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''. 4 4 5 5 This can be easily added into default Django `static` tag and `django.contrib.staticfiles` tag as following: