Changes between Initial Version and Version 1 of Ticket #20645
- Timestamp:
- Jun 23, 2013, 5:03:08 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20645 – Description
initial v1 1 if you use an include in your base URLConf and then use a name=''in that subsequent URLConf, the name doesn't resolve when you do a reverse match in the url tag in a template.1 if you use an include in your base URLConf and then use a `name=''` in that subsequent URLConf, the name doesn't resolve when you do a reverse match in the url tag in a template. 2 2 3 3 Example: 4 4 5 5 Root 6 url.py7 6 7 urls.py 8 {{{ 8 9 urlpatterns = patterns('', 9 10 … … 11 12 12 13 ) 13 14 }}} 14 15 Bar 15 url .py16 16 urls.py 17 {{{ 17 18 urlpatterns = patterns('bar.views', 18 19 … … 20 21 21 22 ) 22 23 }}} 23 24 in a HTML Template 24 25 {{{ 25 26 {% url "generateFoo" %} 27 }}} 26 28 27 29 This generates a NoReverseMatch