Commit 5c17bcfb authored by Jean Michel Rouly's avatar Jean Michel Rouly

Require login, redirect invalid requests.

parent 0e8d76fe
from django.shortcuts import render
from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
# Create your views here.
def filter_class(request):
@login_required
def base_redirect(request):
return redirect('website.views.index')
@login_required
def filter_section(request, section):
return render(request, 'index.html', {
},
)
@login_required
def filter_date(request):
return render(request, 'index.html', {
},
)
@login_required
def filter_comments(request):
return render(request, 'index.html', {
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment