{"id":75698,"date":"2020-01-20T11:33:43","date_gmt":"2020-01-20T06:03:43","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?p=75698"},"modified":"2024-04-12T14:17:15","modified_gmt":"2024-04-12T08:47:15","slug":"including-other-urlconfs-2","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/","title":{"rendered":"Including Other URLconfs"},"content":{"rendered":"<p>At any point, your urlpatterns can \u201cinclude\u201d other URLconf modules. This essentially \u201croots\u201d a set of URLs below other ones. For example, here\u2019s an excerpt of the URLconf for the Django Web site itself. It includes a number of other URLconfs:<\/p>\n<p>from django.conf.urls import include, url<\/p>\n<p>urlpatterns = [<br>\n# &#8230;<br>\nurl(r&#8217;^community\/&#8217;, include(&#8216;django_website.aggregator.urls&#8217;)),<br>\nurl(r&#8217;^contact\/&#8217;, include(&#8216;django_website.contact.urls&#8217;)),<br>\n# &#8230;<br>\n]\n<p>Note that the regular expressions in this example don\u2019t have a $ (end-of-string match character) but do include a trailing slash. Whenever Django encounters include(), it chops off whatever part of the URL matched up to that point and sends the remaining string to the included URLconf for further processing. Another possibility is to include additional URL patterns by using a list of url() instances. For example, consider this URLconf:<\/p>\n<p>from django.conf.urls import include, url<br>\nfrom apps.main import views as main_views<br>\nfrom credit import views as credit_views<\/p>\n<p>extra_patterns = [<br>\nurl(r&#8217;^reports\/(?P&lt;id&gt;[0-9]+)\/$&#8217;, credit_views.report),<br>\nurl(r&#8217;^charge\/$&#8217;, credit_views.charge),<br>\n]\n<p>urlpatterns = [<br>\nurl(r&#8217;^$&#8217;, main_views.homepage),<br>\nurl(r&#8217;^help\/&#8217;, include(&#8216;apps.help.urls&#8217;)),<br>\nurl(r&#8217;^credit\/&#8217;, include(extra_patterns)),<br>\n]\n<p>In this example, the \/credit\/reports\/ URL will be handled by the credit.views.report() Django view. This can be used to remove redundancy from URLconfs where a single pattern prefix is used repeatedly. For example, consider this URLconf:<\/p>\n<p>from django.conf.urls import url<br>\nfrom . import views<\/p>\n<p>urlpatterns = [<br>\nurl(r&#8217;^(?P&lt;page_slug&gt;\\w+)-(?P&lt;page_id&gt;\\w+)\/history\/$&#8217;,<br>\nviews.history),<br>\nurl(r&#8217;^(?P&lt;page_slug&gt;\\w+)-(?P&lt;page_id&gt;\\w+)\/edit\/$&#8217;,<br>\nviews.edit),<br>\nurl(r&#8217;^(?P&lt;page_slug&gt;\\w+)-(?P&lt;page_id&gt;\\w+)\/discuss\/$&#8217;,<br>\nviews.discuss),<br>\nurl(r&#8217;^(?P&lt;page_slug&gt;\\w+)-(?P&lt;page_id&gt;\\w+)\/permissions\/$&#8217;,<br>\nviews.permissions),<br>\n]\n<p>We can improve this by stating the common path prefix only once and grouping the suffixes that differ:<\/p>\n<p>from django.conf.urls import include, url<br>\nfrom . import views<\/p>\n<p>urlpatterns = [<br>\nurl(r&#8217;^(?P&lt;page_slug&gt;\\w+)-(?P&lt;page_id&gt;\\w+)\/&#8217;,<br>\ninclude([<br>\nurl(r&#8217;^history\/$&#8217;, views.history),<br>\nurl(r&#8217;^edit\/$&#8217;, views.edit),<br>\nurl(r&#8217;^discuss\/$&#8217;, views.discuss),<br>\nurl(r&#8217;^permissions\/$&#8217;, views.permissions),<br>\n])),<br>\n]\n<h3>Captured Parameters<\/h3>\n<p>An included URLconf receives any captured parameters from parent URLconfs, so the fol\\<br>\nlowing example is valid:<\/p>\n<p># In settings\/urls\/main.py<br>\nfrom django.conf.urls import include, url<\/p>\n<p>urlpatterns = [<br>\nurl(r&#8217;^(?P&lt;username&gt;\\w+)\/reviews\/&#8217;, include(&#8216;foo.urls.reviews&#8217;)),<br>\n]\n<p># In foo\/urls\/reviews.py<br>\nfrom django.conf.urls import url<br>\nfrom . import views<\/p>\n<p>urlpatterns = [<br>\nurl(r&#8217;^$&#8217;, views.reviews.index),<br>\nurl(r&#8217;^archive\/$&#8217;, views.reviews.archive),<br>\n]\n<p>In the above example, the captured &#8220;username&#8221; variable is passed to the included URLconf, as expected.<\/p>\n<h3>Passing Extra Options to View Functions<\/h3>\n<p>URLconfs have a hook that lets you pass extra arguments to your view functions, as a Python dictionary. The django.conf.urls.url() function can take an optional third argument which should be a dictionary of extra keyword arguments to pass to the view function. For example:<\/p>\n<p>from django.conf.urls import url<br>\nfrom . import views<\/p>\n<p>urlpatterns = [<br>\nurl(r&#8217;^reviews\/(?P&lt;year&gt;[0-9]{4})\/$&#8217;,<br>\nviews.year_archive,<br>\n{&#8216;foo&#8217;: &#8216;bar&#8217;}),<br>\n]\n<p>In this example, for a request to \/reviews\/2005\/, Django will call views.year_archive(request, year=&#8217;2005&#8242;, foo=&#8217;bar&#8217;).<\/p>\n<h3>Passing Extra Options to include()<\/h3>\n<p>Similarly, you can pass extra options to include(). When you pass extra options to include(), each line in the included URLconf will be passed the extra options. For example, these two URLconf sets are functionally identical:<\/p>\n<p>Set one:<br>\n# main.py<br>\nfrom django.conf.urls import include, url<\/p>\n<p>urlpatterns = [<br>\nurl(r&#8217;^reviews\/&#8217;, include(&#8216;inner&#8217;), {&#8216;reviewid&#8217;: 3}),<br>\n]\n<p># inner.py<br>\nfrom django.conf.urls import url<br>\nfrom mysite import views<\/p>\n<p>urlpatterns = [<br>\nurl(r&#8217;^archive\/$&#8217;, views.archive),<br>\nurl(r&#8217;^about\/$&#8217;, views.about),<br>\n]\n<p>Set two:<br>\n# main.py<br>\nfrom django.conf.urls import include, url<br>\nfrom mysite import views<\/p>\n<p>urlpatterns = [<br>\nurl(r&#8217;^reviews\/&#8217;, include(&#8216;inner&#8217;)),<br>\n]\n<p># inner.py<br>\nfrom django.conf.urls import url<\/p>\n<p>urlpatterns = [<br>\nurl(r&#8217;^archive\/$&#8217;, views.archive, {&#8216;reviewid&#8217;: 3}),<br>\nurl(r&#8217;^about\/$&#8217;, views.about, {&#8216;reviewid&#8217;: 3}),<br>\n]\n<p>Note that extra options will always be passed to every line in the included URLconf, regardless of whether the line\u2019s view actually accepts those options as valid. For this reason, this technique is only useful if you\u2019re certain that every view in the included URLconf accepts the extra options you\u2019re passing.<\/p>\n<h3>Reverse Resolution of URLs<\/h3>\n<p>A common need when working on a Django project is the possibility to obtain URLs in their final forms either for embedding in generated content (views and assets URLs, URLs shown to the user, etc.) or for handling of the navigation flow on the server side (redirections, etc.)<\/p>\n<p>It is strongly desirable to avoid hard-coding these URLs (a laborious, non-scalable and error-prone strategy) or having to devise ad-hoc mechanisms for generating URLs that are parallel to the design described by the URLconf and as such in danger of producing stale URLs at some point. In other words, what\u2019s needed is a DRY mechanism.<\/p>\n<p>Among other advantages it would allow evolution of the URL design without having to go all over the project source code to search and replace outdated URLs. The piece of information we have available as a starting point to get a URL is an identification (e.g. the name) of the view in charge of handling it, other pieces of information that necessarily must participate in the lookup of the right URL are the types (positional, keyword) and values of the view arguments.<\/p>\n<p>Django provides a solution such that the URL mapper is the only repository of the URL design. You feed it with your URLconf and then it can be used in both directions:<\/p>\n<ul>\n<li>&nbsp;Starting with a URL requested by the user\/browser, it calls the right Django view providing any arguments it might need with their values as extracted from the URL.<\/li>\n<li>Starting with the identification of the corresponding Django view plus the values of arguments that would be passed to it, obtain the associated URL.<\/li>\n<\/ul>\n<p>The first one is the usage we\u2019ve been discussing in the previous sections. The second one is what is known as reverse resolution of URLs, reverse URL matching, reverse URL lookup, or simply URL reversing.<\/p>\n<ul>\n<li>Django provides tools for performing URL reversing that match the different layers where URLs are needed:<br>\nIn templates: Using the url template tag.<\/li>\n<li>In Python code: Using the django.core.urlresolvers.reverse() function.<\/li>\n<li>In higher level code related to handling of URLs of Django model instances: The get_absolute_url() method.<\/li>\n<\/ul>\n<p><strong>Examples<\/strong><br>\nConsider again this URLconf entry:<\/p>\n<p>from django.conf.urls import url<br>\nfrom . import views<\/p>\n<p>urlpatterns = [<br>\n#&#8230;<br>\nurl(r&#8217;^reviews\/([0-9]{4})\/$&#8217;, views.year_archive,<br>\nname=&#8217;reviews-year-archive&#8217;),<br>\n#&#8230;<br>\n]\n<p>According to this design, the URL for the archive corresponding to year nnnn is \/reviews\/nnnn\/. You can obtain these in template code by using:<\/p>\n<p>&lt;a href=&#8221;{% url &#8216;reviews-year-archive&#8217; 2012 %}&#8221;&gt;2012 Archive&lt;\/a&gt;<br>\n{# Or with the year in a template context variable: #}<\/p>\n<p>&lt;ul&gt;<br>\n{% for yearvar in year_list %}<br>\n&lt;li&gt;&lt;a href=&#8221;{% url &#8216;reviews-year-archive&#8217; yearvar %}&#8221;&gt;{{<br>\nyearvar }} Archive&lt;\/a&gt;&lt;\/li&gt;<br>\n{% endfor %}<br>\n&lt;\/ul&gt;<\/p>\n<p>Or in Python code:<\/p>\n<p>from django.core.urlresolvers import reverse<br>\nfrom django.http import HttpResponseRedirect<\/p>\n<p>def redirect_to_year(request):<br>\n# &#8230;<br>\nyear = 2012<br>\n# &#8230;<br>\nreturn HttpResponseRedirect(reverse(&#8216;reviews-year-archive&#8217;, args=(year,)))<\/p>\n<p>If, for some reason, it was decided that the URLs where content for yearly review archives are published at should be changed then you would only need to change the entry in the URLconf. In some scenarios where views are of a generic nature, a many-to-one relationship might exist between URLs and views. For these cases the view name isn\u2019t a good enough identifier for it when comes the time of reversing URLs. Read the next section to know about the solution Django provides for this.<\/p>\n<h3>Naming URL Patterns<\/h3>\n<p>In order to perform URL reversing, you\u2019ll need to use named URL patterns as done in the examples above. The string used for the URL name can contain any characters you like. You are not restricted to valid Python names. When you name your URL patterns, make sure you use names that are unlikely to clash with any other application\u2019s choice of names. If you call your URL pattern comment, and another application does the same thing, there\u2019s no guarantee which URL will be inserted into your template when you use this name. Putting a prefix on your URL names, perhaps derived from the application name, will decrease the chances of collision. We recommend something like myapp-comment instead of comment.<\/p>\n<h3>URL Namespaces<\/h3>\n<p>URL namespaces allow you to uniquely reverse named URL patterns even if different applications use the same URL names. It\u2019s a good practice for third-party apps to always use namespaced URLs. Similarly, it also allows you to reverse URLs if multiple instances of an application are deployed. In other words, since multiple instances of a single application will share named URLs, namespaces provide a way to tell these named URLs apart.<\/p>\n<p>Django applications that make proper use of URL namespacing can be deployed more than once for a particular site. For example,<br>\ndjango.contrib.admin has an AdminSite class which allows you to easily deploy more than once instance of the admin. A URL namespace comes in two parts, both of which are strings:<\/p>\n<ul>\n<li>Application namespace. This describes the name of the application that is being deployed. Every instance of a single application will have the same application namespace. For example, Django\u2019s admin application has the somewhat predictable application namespace of admin.<\/li>\n<li>Instance namespace. This identifies a specific instance of an application. Instance namespaces should be unique across your entire project. However, an instance namespace can be the same as the application namespace. This is used to specify a default instance of an application. For example, the default Django admin instance has an instance namespace of admin.<\/li>\n<\/ul>\n<p>Namespaced URLs are specified using the \u201c : \u201c operator. For example, the main index page of the admin application is referenced using \u201cadmin:index\u201d. This indicates a namespace of \u201cadmin\u201d, and a named URL of \u201cindex\u201d.<\/p>\n<p>Namespaces can also be nested. The named URL members:reviews:index would look for a pattern named \u201cindex\u201d in the namespace \u201creviews\u201d that is itself defined within the top-level namespace \u201cmembers\u201d.<br>\nReversing Namespaced URLs<br>\nWhen given a namespaced URL (e.g. \u201creviews:index\u201d) to resolve, Django splits the fully qualified name into parts and then tries the following lookup:<\/p>\n<ul>\n<li>First, Django looks for a matching application namespace (in this example, \u201creviews\u201d). This will yield a list of instances of that application.<\/li>\n<li>If there is a current application defined, Django finds and returns the URL resolver for that instance. The current application can be specified as an attribute on the request. Applications that expect to have multiple deployments should set the current_app attribute on the request being processed.<\/li>\n<li>The current application can also be specified manually as an argument to the reverse() function.<\/li>\n<li>If there is no current application. Django looks for a default application instance. The default application instance is the instance that has an instance namespace matching the application namespace (in this example, an instance of reviews called \u201creviews\u201d).<\/li>\n<li>If there is no default application instance, Django will pick the last deployed instance of the application, whatever its instance name may be.<\/li>\n<li>If the provided namespace doesn\u2019t match an application namespace in step 1, Django will attempt a direct lookup of the namespace as an instance namespace.<\/li>\n<\/ul>\n<p>If there are nested namespaces, these steps are repeated for each part of the namespace until only the view name is unresolved. The view name will then be resolved into a URL in the namespace that has been found.<br>\nURL Namespaces and Included URLconfs<br>\nURL namespaces of included URLconfs can be specified in two ways. Firstly, you can provide the application and instance namespaces as arguments to include() when you construct your URL patterns. For example:<\/p>\n<p>url(r&#8217;^reviews\/&#8217;, include(&#8216;reviews.urls&#8217;, namespace=&#8217;author-reviews&#8217;, app_name=&#8217;revie\\<br>\nws&#8217;)),<\/p>\n<p>This will include the URLs defined in reviews.urls into the application namespace &#8216;reviews&#8217;, with the instance namespace &#8216;author-reviews&#8217;. Secondly, you can include an object that contains embedded namespace data. If you include() a list of url() instances, the URLs contained in that object will be added to the global namespace. However, you can also include() a 3-tuple containing:<\/p>\n<p>(&lt;list of url() instances&gt;, &lt;application namespace&gt;, &lt;instance namespace&gt;)<\/p>\n<p>For example:<\/p>\n<p>from django.conf.urls import include, url<br>\nfrom . import views<\/p>\n<p>reviews_patterns = [<br>\nurl(r&#8217;^$&#8217;, views.IndexView.as_view(), name=&#8217;index&#8217;),<br>\nurl(r&#8217;^(?P&lt;pk&gt;\\d+)\/$&#8217;, views.DetailView.as_view(), name=&#8217;detail&#8217;),<br>\n]\n<p>url(r&#8217;^reviews\/&#8217;, include((reviews_patterns, &#8216;reviews&#8217;, &#8216;author-reviews&#8217;))),<\/p>\n<p>This will include the nominated URL patterns into the given application and instance namespace. For example, the Django admin is deployed as instances of AdminSite. AdminSite objects have a urls attribute: A 3-tuple that contains all the patterns in the corresponding admin site, plus the application namespace \u201cadmin\u201d, and the name of the admin instance. It is this urls attribute that you include() into your projects urlpatterns when you deploy an admin instance.<\/p>\n<p>Be sure to pass a tuple to include(). If you simply pass three arguments: include(reviews_patterns, &#8216;reviews&#8217;, &#8216;author-reviews&#8217;), Django won\u2019t throw an error but due to the signature of include(), &#8216;reviews&#8217; will be the instance namespace and &#8216;author-reviews&#8217; will be the application namespace instead of vice versa.<\/p>\n\n\n<p><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/certified-django-developer\/\" target=\"_blank\" rel=\"noreferrer noopener\">Back to Tutorial<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>At any point, your urlpatterns can \u201cinclude\u201d other URLconf modules. This essentially \u201croots\u201d a set of URLs below other ones. For example, here\u2019s an excerpt of the URLconf for the Django Web site itself. It includes a number of other URLconfs: from django.conf.urls import include, url urlpatterns = [ # &#8230; url(r&#8217;^community\/&#8217;, include(&#8216;django_website.aggregator.urls&#8217;)), url(r&#8217;^contact\/&#8217;, include(&#8216;django_website.contact.urls&#8217;)),&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[8655],"tags":[2625],"class_list":["post-75698","page","type-page","status-publish","hentry","category-django-web-development","tag-including-other-urlconfs"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Including Other URLconfs - Tutorial<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Including Other URLconfs - Tutorial\" \/>\n<meta property=\"og:description\" content=\"At any point, your urlpatterns can \u201cinclude\u201d other URLconf modules. This essentially \u201croots\u201d a set of URLs below other ones. For example, here\u2019s an excerpt of the URLconf for the Django Web site itself. It includes a number of other URLconfs: from django.conf.urls import include, url urlpatterns = [ # &#8230; url(r&#8217;^community\/&#8217;, include(&#8216;django_website.aggregator.urls&#8217;)), url(r&#8217;^contact\/&#8217;, include(&#8216;django_website.contact.urls&#8217;)),...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:47:15+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/\",\"name\":\"Including Other URLconfs - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"datePublished\":\"2020-01-20T06:03:43+00:00\",\"dateModified\":\"2024-04-12T08:47:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Including Other URLconfs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Including Other URLconfs - Tutorial","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/","og_locale":"en_US","og_type":"article","og_title":"Including Other URLconfs - Tutorial","og_description":"At any point, your urlpatterns can \u201cinclude\u201d other URLconf modules. This essentially \u201croots\u201d a set of URLs below other ones. For example, here\u2019s an excerpt of the URLconf for the Django Web site itself. It includes a number of other URLconfs: from django.conf.urls import include, url urlpatterns = [ # &#8230; url(r&#8217;^community\/&#8217;, include(&#8216;django_website.aggregator.urls&#8217;)), url(r&#8217;^contact\/&#8217;, include(&#8216;django_website.contact.urls&#8217;)),...","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:47:15+00:00","twitter_misc":{"Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/","name":"Including Other URLconfs - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"datePublished":"2020-01-20T06:03:43+00:00","dateModified":"2024-04-12T08:47:15+00:00","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/including-other-urlconfs-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Including Other URLconfs"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/75698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=75698"}],"version-history":[{"count":4,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/75698\/revisions"}],"predecessor-version":[{"id":83806,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/75698\/revisions\/83806"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=75698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=75698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=75698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}