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

Created new filters sub-app for the website

parent 10cf4f85
from django.contrib import admin
# Register your models here.
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.conf.urls import patterns, include, url
urlpatterns = patterns('website.filters.views',
#### Available filters
url(r'^class/(?P<class>\w+)$', 'filter_class', name='filter_class'),
url(r'^date$', 'filter_date', name='filter_date'),
url(r'^comments$', 'filter_comments', name='filter_comments'),
)
from django.shortcuts import render
# Create your views here.
def filter_class(request):
return render(request, 'index.html', {
},
)
def filter_date(request):
return render(request, 'index.html', {
},
)
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