From 08d8e7ebf5845ea8e7dd2e0eaaf61b3f9a8ea1ce Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 21 Apr 2011 01:51:32 -0400 Subject: basic front page --- piccast/feeds/views.py | 9 +++++++++ piccast/urls.py | 2 ++ 2 files changed, 11 insertions(+) diff --git a/piccast/feeds/views.py b/piccast/feeds/views.py index 4a80144..de335d6 100644 --- a/piccast/feeds/views.py +++ b/piccast/feeds/views.py @@ -3,6 +3,15 @@ from django.core import serializers from models import * JSONSerializer = serializers.get_serializer("json") +basic_html = """ + +PicCast + +

PicCast

+ +""" +def basic_frontpage(request): + return HttpResponse(basic_html); def newest_feeds(request): feeds = PicFeed.objects.order_by('-created')[:20] diff --git a/piccast/urls.py b/piccast/urls.py index c1e9917..0979de6 100644 --- a/piccast/urls.py +++ b/piccast/urls.py @@ -23,4 +23,6 @@ urlpatterns = patterns('', (r'^json/pics_by_set/(\d+)/', 'feeds.views.pics_by_set'), (r'^json/sets_by_feed/(\d+)/', 'feeds.views.sets_by_feed'), (r'^json/sets_by_feed/([-\w]+)/', 'feeds.views.sets_by_feedslug'), + (r'^$', 'feeds.views.basic_frontpage'), ) + -- cgit v1.2.3