Tuesday, October 28, 2014

What is the purpose of the include function?

Hi,
In reference to urls.py what is the purpose of the include function?  For example what is the difference between these two lines?
url(r'^admin/', admin.site.urls),
url(r'^admin/', include(admin.site.urls)),


--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2bb2e4d6-43e5-4615-81ed-e5103bb27ca7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment