Commit be081b1e authored by Jean Michel Rouly's avatar Jean Michel Rouly

Cleande up a bit

parent 5c17bcfb
......@@ -3,10 +3,11 @@ from django.conf.urls import patterns, include, url
urlpatterns = patterns('website.filters.views',
#### Available filters
url(r'^$', 'base_redirect'),
url(r'^section/(?P<section>\w+)$', 'filter_section', name='filter_section'),
url(r'^section/?$', 'base_redirect'),
url(r'^date$', 'filter_date', name='filter_date'),
url(r'^comments$', 'filter_comments', name='filter_comments'),
#### Invalid requests to redirect
url(r'^$', 'base_redirect'),
url(r'^section/?$', 'base_redirect'),
)
......@@ -5,18 +5,21 @@ from django.contrib.auth.decorators import 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