初步框架搭建

This commit is contained in:
2024-09-03 20:57:22 +08:00
parent 808b211882
commit d32e0000ba
947 changed files with 159376 additions and 0 deletions
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+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 BlogConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "blog"
+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.