Permalink
Browse files

Adding links to static pages (about, faq, privacy, tos, api, etc).

  • Loading branch information...
1 parent 61f750e commit db685f36e2e3decc4529241af819be5a78e44b1a @samuelclay committed Apr 1, 2011
Showing with 839 additions and 0 deletions.
  1. 0 apps/static/__init__.py
  2. +3 −0 apps/static/models.py
  3. +23 −0 apps/static/tests.py
  4. +34 −0 apps/static/views.py
  5. +779 −0 config/tumblr.conf
View
No changes.
View
@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.
View
@@ -0,0 +1,23 @@
+"""
+This file demonstrates two different styles of tests (one doctest and one
+unittest). These will both pass when you run "manage.py test".
+
+Replace these with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+class SimpleTest(TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.failUnlessEqual(1 + 1, 2)
+
+__test__ = {"doctest": """
+Another way to test that 1 + 1 is equal to 2.
+
+>>> 1 + 1 == 2
+True
+"""}
+
View
@@ -0,0 +1,34 @@
+import os
+import base64
+from django.conf import settings
+from django.http import HttpResponse
+from django.shortcuts import render_to_response
+from django.template import RequestContext
+from apps.profile.models import Profile
+from apps.reader.models import UserSubscription, UserSubscriptionFolders
+from utils import json_functions as json
+from utils import log as logging
+
+def about(request):
+ return render_to_response('static/about.xhtml', {},
+ context_instance=RequestContext(request))
+
+def faq(request):
+ return render_to_response('static/faq.xhtml', {},
+ context_instance=RequestContext(request))
+
+def api(request):
+ return render_to_response('static/api.xhtml', {},
+ context_instance=RequestContext(request))
+
+def press(request):
+ return render_to_response('static/press.xhtml', {},
+ context_instance=RequestContext(request))
+
+def privacy(request):
+ return render_to_response('static/privacy_policy.xhtml', {},
+ context_instance=RequestContext(request))
+
+def tos(request):
+ return render_to_response('static/tos.xhtml', {},
+ context_instance=RequestContext(request))
Oops, something went wrong.

0 comments on commit db685f3

Please sign in to comment.