去除了不需要的插件

This commit is contained in:
xishandong 2023-07-30 22:28:59 +08:00
parent bacc78806b
commit 9ad53633bc
7 changed files with 5 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 KiB

View File

@ -83,7 +83,7 @@ def query_post_index(request):
)
else:
posts = models.Post.objects
posts = filter_querySet(posts, offset, limit=5)
posts = filter_querySet(posts, offset, limit=10)
if posts:
return JsonResponse({'info': list(combine_index_post(posts))}, status=200)
# 没有内容了

View File

@ -29,10 +29,10 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
"django.contrib.admin",
# "django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
# "django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"Server01.apps.Server01Config",

View File

@ -13,13 +13,13 @@ 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.contrib import admin
from django.urls import path
from Server01.views import user, post, comment
urlpatterns = [
path("admin/", admin.site.urls),
# path("admin/", admin.site.urls),
# 用户相关
path("login/", user.login),
path('register/', user.register),