aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2011-04-21 01:51:32 -0400
committerbnewbold <bnewbold@robocracy.org>2011-04-21 01:51:32 -0400
commit08d8e7ebf5845ea8e7dd2e0eaaf61b3f9a8ea1ce (patch)
tree8b03790ad27b5838f84deec63e518150b8d7b08d
parent0c4b1b64492cce80432cf0d51054512792a1701f (diff)
downloadpiccast-08d8e7ebf5845ea8e7dd2e0eaaf61b3f9a8ea1ce.tar.gz
piccast-08d8e7ebf5845ea8e7dd2e0eaaf61b3f9a8ea1ce.zip
basic front page
-rw-r--r--piccast/feeds/views.py9
-rw-r--r--piccast/urls.py2
2 files changed, 11 insertions, 0 deletions
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 = """
+<html>
+<head><title>PicCast</title></head>
+<body>
+<h1>PicCast</h1>
+</html>
+"""
+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'),
)
+