views.py 1.88 KB
Newer Older
Daniel W Bond's avatar
Daniel W Bond committed
1
from flask import render_template
Daniel W Bond's avatar
Daniel W Bond committed
2
from website import website
Daniel W Bond's avatar
Daniel W Bond committed
3

Daniel W Bond's avatar
Daniel W Bond committed
4
@website.route('/')
Daniel W Bond's avatar
Daniel W Bond committed
5 6 7 8
def index():
    return render_template("index.html",
    
    )
Daniel W Bond's avatar
Daniel W Bond committed
9

Daniel W Bond's avatar
Daniel W Bond committed
10
@website.route('/calendar/')
Daniel W Bond's avatar
Daniel W Bond committed
11 12 13 14 15
def calendar():
    return render_template("calendar.html",
    
    )

Daniel W Bond's avatar
Daniel W Bond committed
16
@website.route('/contact/')
Daniel W Bond's avatar
Daniel W Bond committed
17 18 19 20 21
def contact():
    return render_template("contact.html",
    
    )

Daniel W Bond's avatar
Daniel W Bond committed
22
@website.route('/documents/')
Daniel W Bond's avatar
Daniel W Bond committed
23 24 25 26 27
def documents():
    return render_template("documents.html",
    
    )

Daniel W Bond's avatar
Daniel W Bond committed
28
@website.route('/events/')
Daniel W Bond's avatar
Daniel W Bond committed
29 30 31 32 33
def events():
    return render_template("events.html",
    
    )

Daniel W Bond's avatar
Daniel W Bond committed
34
@website.route('/meetings/')
Daniel W Bond's avatar
Daniel W Bond committed
35 36 37 38 39
def meetings():
    return render_template("meetings.html",
    
    )

Daniel W Bond's avatar
Daniel W Bond committed
40
@website.route('/people/')
Daniel W Bond's avatar
Daniel W Bond committed
41 42 43 44 45
def people():
    return render_template("people.html",
    
    )

Daniel W Bond's avatar
Daniel W Bond committed
46
@website.route('/projects/')
Daniel W Bond's avatar
Daniel W Bond committed
47 48 49 50
def projects():
    return render_template("projects.html",

    )
51 52 53

### DOCUMENTS ###

Daniel W Bond's avatar
Daniel W Bond committed
54
@website.route('/documents/constitution/')
55 56 57 58 59
def constitution():
    return render_template("documents/constitution.html",
    
    )

Daniel W Bond's avatar
Daniel W Bond committed
60
@website.route('/documents/intellectual_property/')
61 62 63 64 65
def intellectualProperty():
    return render_template("documents/intellectual_property.html",
    
    )

Daniel W Bond's avatar
Daniel W Bond committed
66
@website.route('/documents/logos/')
67 68 69 70 71 72
def logos():
    return render_template("documents/logos.html",
    
    )


Daniel W Bond's avatar
Daniel W Bond committed
73
@website.route('/documents/privacy_policy/')
74 75 76 77 78
def privacyPolicy():
    return render_template("documents/privacy_policy.html",
    
    )

Daniel W Bond's avatar
Daniel W Bond committed
79
@website.route('/documents/software_freedom/')
80 81 82 83 84
def softwareFreedom():
    return render_template("documents/software_freedom.html",
    
    )

Daniel W Bond's avatar
Daniel W Bond committed
85
@website.route('/documents/terms_of_service/')
86 87 88 89 90
def termsOfService():
    return render_template("documents/terms_of_service.html",
    
    )

Daniel W Bond's avatar
Daniel W Bond committed
91
@website.route('/documents/usage_policy/')
92 93 94 95
def usagePolicy():
    return render_template("documents/usage_policy.html",

    )
Daniel W Bond's avatar
404  
Daniel W Bond committed
96 97 98 99 100

# 404 error
@website.errorhandler(404)
def page_not_found(error):
    return render_template("404.html"), 404