On Monday, March 28, 2016 at 7:23:22 PM UTC+2, James Schneider wrote:That's not entirely accurate. It is perfectly valid to assign a name to an included set of URL's. This creates a namespace for the URL's that are being included. See here:Actually, the name parameter is completely ignored[1] when using include(). You can set a namespace by passing the namespace (and app_name) parameter to include()[2], or in 1.9+, by setting the app_name attribute in the target URLconf[3]. That means the name that should be used with the current code is just 'home'.
I really need to read the code closer. I simply read it as 'namespace' in my head. You are correct.
-James
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciXNp%2B2V6jNjN0Z5WfxB3Zr8WzhmAddE1%2BfPQyT7DG7wCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment