summaryrefslogtreecommitdiffstats
path: root/expo/views_other.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:25:17 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:25:17 +0100
commit7aee3fb920a1477332d78c8f3fb546da428be6e8 (patch)
treecdfacfc1ef181881d2ac1c7f4c8d4bce2ec917eb /expo/views_other.py
parent8c818906b5c1228a6fb411cb96d1bd5f1663b49a (diff)
downloadtroggle-7aee3fb920a1477332d78c8f3fb546da428be6e8.tar.gz
troggle-7aee3fb920a1477332d78c8f3fb546da428be6e8.tar.bz2
troggle-7aee3fb920a1477332d78c8f3fb546da428be6e8.zip
[svn] QM parser now parses Hauchhoehle QMs.py
Photo model added. Logbook parser now puts mugshots in as photo models, and descriptions from the old folk html pages in as "blurbs" on the person model. Experimented with eye candy and a random logbook quote generator. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8094 by aaron @ 12/31/2008 2:59 AM
Diffstat (limited to 'expo/views_other.py')
-rw-r--r--expo/views_other.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/expo/views_other.py b/expo/views_other.py
index 808238e..88a8559 100644
--- a/expo/views_other.py
+++ b/expo/views_other.py
@@ -3,6 +3,8 @@ from troggle.expo.models import Cave, Expedition, Person, LogbookEntry
import troggle.settings as settings
from django import forms
from django.db.models import Q
+import re
+import randSent
def stats(request):
statsDict={}
@@ -10,4 +12,8 @@ def stats(request):
statsDict['caveCount'] = int(Cave.objects.count())
statsDict['personCount'] = int(Person.objects.count())
statsDict['logbookEntryCount'] = int(LogbookEntry.objects.count())
- return render_to_response('statistics.html', statsDict) \ No newline at end of file
+ return render_to_response('statistics.html', statsDict)
+
+def frontPage(request):
+
+ return render_to_response('index.html', {'randSent':randSent.randomLogbookSentence(),'settings':settings}) \ No newline at end of file