diff options
-rw-r--r-- | piccast/feeds/views.py | 9 | ||||
-rw-r--r-- | piccast/urls.py | 2 |
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'), ) + |