master
11617 2 years ago
parent fdcb07e2c1
commit d3a5858eef
  1. 4
      App/views.py
  2. 2
      docker-compose.yml

@ -19,7 +19,7 @@ from .csdn import get_image
from wsgiref.util import FileWrapper from wsgiref.util import FileWrapper
from urllib.parse import quote from urllib.parse import quote
#@cache_page(60 * 15) @cache_page(60)
def index(request): def index(request):
name = None name = None
if request.user.is_authenticated: if request.user.is_authenticated:
@ -96,7 +96,7 @@ def register(request):
return render(request, 'register.html') return render(request, 'register.html')
#@cache_page(60) @cache_page(60)
@login_required @login_required
def dashboard(request, type): def dashboard(request, type):
username = auth.get_user(request).username username = auth.get_user(request).username

@ -25,4 +25,6 @@ services:
redis: redis:
image: daocloud.io/library/redis image: daocloud.io/library/redis
environment:
- REDIS_PASSWORD=12345678

Loading…
Cancel
Save