From 36053ee3bc847212eb31579fb053f00b10164eef Mon Sep 17 00:00:00 2001 From: Qkbrauyvi <2370186969@qq.com> Date: Tue, 25 May 2021 21:12:39 +0800 Subject: [PATCH] path(r'', include('demo.urls')), --- SpiderWebsite/SpiderWebsite/urls.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/SpiderWebsite/SpiderWebsite/urls.py b/SpiderWebsite/SpiderWebsite/urls.py index e69de29..058a2f7 100644 --- a/SpiderWebsite/SpiderWebsite/urls.py +++ b/SpiderWebsite/SpiderWebsite/urls.py @@ -0,0 +1,22 @@ +"""SpiderWebsite URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/3.2/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path, include + +urlpatterns = [ + path('admin/', admin.site.urls), + path(r'', include('demo.urls')), +]