From 5620d5ca92919ea9dad61649f7cfa5022a52b77b Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 30 Mar 2023 20:01:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=99=E4=BA=86=E4=B8=80=E4=B8=AAurl?= =?UTF-8?q?=EF=BC=9Alogin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/account/templates/login.html | 10 ++++++++++ apps/account/views.py | 2 ++ urls.py | 5 ++++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 apps/account/templates/login.html diff --git a/apps/account/templates/login.html b/apps/account/templates/login.html new file mode 100644 index 0000000..88607f6 --- /dev/null +++ b/apps/account/templates/login.html @@ -0,0 +1,10 @@ + + + + + Title + + +

登录界面

+ + \ No newline at end of file diff --git a/apps/account/views.py b/apps/account/views.py index 91ea44a..dabcda7 100644 --- a/apps/account/views.py +++ b/apps/account/views.py @@ -1,3 +1,5 @@ from django.shortcuts import render # Create your views here. +def login(request): + return render(request,"login.html") \ No newline at end of file diff --git a/urls.py b/urls.py index 663b5c0..af232ba 100644 --- a/urls.py +++ b/urls.py @@ -16,6 +16,9 @@ Including another URLconf from django.contrib import admin from django.urls import path +from apps.account import apps, views + urlpatterns = [ - path('admin/', admin.site.urls), + # path('admin/', admin.site.urls), + path('login/',views.login) ]