Examples of application namespace and namespace:
What is an example of the namespace: multiple url is mapped to the same app, the code is as follows:
path('cms1/', include('cms.urls')), path('cms2/', include('cms.urls')),
As shown below:
What happens on the situation in the previous section (application namespace --016) of it?
1, cms want to look at the situation inside, as shown below:
Visit: http: //127.0.0.1: 8000 / cms1 / Jump to: http: //127.0.0.1: 8000 / cms1 / login /; however visit: http: //127.0.0.1: 8000 / cms2 / hop too go to: http: //127.0.0.1: 8000 / cms1 / login /; how to solve this problem?
Examples of namespaces on stage:
include inside with namespace, as shown below:
views view function in the case as shown below:
After the above toss, can occur a case (for a multiple url app, you can also jump right):
Note: 016 017 section and compare the two to see, really can solve some special cases