From 7032cbd974a6e0a3ed19500cce7f9f39c532985a Mon Sep 17 00:00:00 2001 From: stef Date: Fri, 29 Apr 2011 20:48:05 +0200 Subject: [PATCH] [enh] added index --- bt/views.py | 3 +++ urls.py | 1 + 2 files changed, 4 insertions(+) diff --git a/bt/views.py b/bt/views.py index e118fd9..1a1bb7c 100644 --- a/bt/views.py +++ b/bt/views.py @@ -27,3 +27,6 @@ def ajax(request, country=None, operator=None): else: 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") diff --git a/urls.py b/urls.py index fac5254..f9e8384 100644 --- a/urls.py +++ b/urls.py @@ -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[^/]*)(/(?P[^/]*))?$', bt.ajax), -- GitLab