Commit 7032cbd9 authored by stef's avatar stef
Browse files

[enh] added index

parent 480f8552
......@@ -27,3 +27,6 @@ def ajax(request, country=None, operator=None):
print 'co', sorted(list(set([x.operator for x in Violation.objects.filter(country=country).filter(operator=operator)])))
return HttpResponse('["Basic", "Surfer", "Gamer", "Pro", "Business"]')
def index(request):
return HttpResponse("ohai, nothing to see here")
......@@ -7,6 +7,7 @@ from bt import views as bt
# admin.autodiscover()
urlpatterns = patterns('',
(r'^$', bt.index),
(r'^accounts/logout$', 'django.contrib.auth.views.logout', {'next_page' : '/'}),
(r'^accounts/', include('registration.urls')),
(r'^ajax/(?P<country>[^/]*)(/(?P<operator>[^/]*))?$', bt.ajax),
Supports Markdown
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