|
|
@ -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 |
|
|
|