diff options
Diffstat (limited to 'expo/views_other.py')
-rw-r--r-- | expo/views_other.py | 8 |
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 |