Say you have a full url localhost:thisdir/callview/
I noticed that in the urls.py file, the included namespace is written as:
(r'^thisdir/', include('thisdir.urls', namespace='thisdir)),
where the initial line is checked, but does not end, and the view call is executed as:
(r'^callview/$', 'thisdir.views.index', name='myview')
with $ to check the end of the line. If the include pattern breaks "thisdir /" into the full URL to check this section first, and I thought that it checks each section of the line at a time (so that "thisdir /" is at the end of the line), why I never see(r'^thisdir/$', ...)
Thank you
source
share