Skip to content

Commit

Permalink
去除了不需要的插件
Browse files Browse the repository at this point in the history
  • Loading branch information
xishandong committed Jul 30, 2023
1 parent bacc788 commit 9ad5363
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
Binary file added Server01/static/img/post/121-lisa.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Server01/views/__pycache__/post.cpython-39.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion Server01/views/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
# 没有内容了
Expand Down
Binary file modified webServer/__pycache__/settings.cpython-39.pyc
Binary file not shown.
Binary file modified webServer/__pycache__/urls.cpython-39.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions webServer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
# 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",
Expand Down
4 changes: 2 additions & 2 deletions webServer/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
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),
Expand Down

0 comments on commit 9ad5363

Please sign in to comment.