Mohamed Feddad

40%
Flag icon
Pattern names used in a namespace only have to be unique within that namespace and not the entire project. It is recommended that you give every app its own namespace. For example, we can create a viewschapter namespace with only the URLs of this chapter by including this line in the root URLconf: path('', include(viewschapter.urls, namespace='viewschapter')), Now we can use pattern names, such as feed or anything else as long as they are unique within that app namespace. While referring to a name within a namespace, you will need to mention the namespace, followed by a : before the name. It ...more
Django Design Patterns and Best Practices: Industry-standard web development techniques and solutions using Python, 2nd Edition
Rate this book
Clear rating