-
Notifications
You must be signed in to change notification settings - Fork 5
/
views.py
47 lines (32 loc) · 947 Bytes
/
views.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from django.shortcuts import render
from .models import Adventure
def index(request, path=''):
"""
The home page
"""
return render(request, 'index.html')
def about(request):
"""
The "about" page
"""
return render(request, 'about.html')
def privacy_policy(request):
"""
The "privacy policy" page
"""
return render(request, 'privacy.html')
def main_hall(request):
"""
The container for the "main hall" react app
"""
return render(request, 'main-hall.html')
def adventure(request, slug):
"""
The container for the "core" a.k.a. "adventure" angular app
"""
return render(request, 'adventure.html', {'slug': slug})
def adventure_list(request):
adventures = Adventure.objects.filter(active=True).order_by('name')
return render(request, 'adventure-list.html', {'adventures': adventures})
def manual(request):
return render(request, 'manual.html')