Changes between Version 3 and Version 4 of Ticket #25598, comment 8
- Timestamp:
- Jul 21, 2016, 9:13:52 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25598, comment 8
v3 v4 3 3 == Why? == 4 4 5 But before that, here are some reasons to do it: 5 But before I make the patch, here are some reasons to do it. 6 7 The first reason is '''consistency''' inside Django core: 6 8 7 9 * `{% url '...' %}` template tag does respect `SCRIPT_NAME` but `{% static '...' %}` does not 8 10 * `reverse(...)` function does respect `SCRIPT_NAME` but `static(...)` does not 9 10 So the first reason is '''consistency''' inside Django core.11 11 12 12 And the second reason is that '''there is no way''' to make it work in case when `SCRIPT_NAME` is a ''dynamic value'' - see an example below.