add 完善用户登录状态和未登录状态

This commit is contained in:
2024-09-05 03:22:23 +08:00
parent d32e0000ba
commit 23bff01191
27 changed files with 132 additions and 6 deletions
View File
+3
View File
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
+6
View File
@@ -0,0 +1,6 @@
from django.apps import AppConfig
class SiteSiteConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "site_site"
+3
View File
@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.
+3
View File
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
+8
View File
@@ -0,0 +1,8 @@
from django.urls import path, include,re_path
from . import views
urlpatterns = [
# re_path(r'^index/$',views.IndexView.as_view()),
# re_path(r'^login/$', views.login),
]
+3
View File
@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.