(django1.6, python2.7.3)
views.py
from django.contrib.auth.decorators import login_required @login_required def hoge_view(request):
urls.py
url(r'^accounts/login/$', 'django.contrib.auth.views.login'),
牌語備忘録 -pygo
(django1.6, python2.7.3)
from django.contrib.auth.decorators import login_required @login_required def hoge_view(request):
url(r'^accounts/login/$', 'django.contrib.auth.views.login'),