From 7aee3fb920a1477332d78c8f3fb546da428be6e8 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 05:25:17 +0100 Subject: [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 --- expo/views_other.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'expo/views_other.py') 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 -- cgit v1.2.3