forked from ujohdaniel/udgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dg.py
executable file
·50 lines (41 loc) · 1.14 KB
/
dg.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
48
49
50
# Importing the modules
from flask import Flask, flash, render_template, request, redirect
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
import sentry_sdk
from flask import Flask
from sentry_sdk.integrations.flask import FlaskIntegration
# Creating the app
app= Flask(__name__)
sentry_sdk.init(
dsn="https://[email protected]/5584444",
integrations=[FlaskIntegration()],
traces_sample_rate=1.0
)
# Home page
@app.route('/')
def homepage():
return render_template('home.html')
# Events page
@app.route('/events')
def events():
return render_template('events.html')
# Gallery page
@app.route('/gallery')
def gallery():
return render_template('gallery.html')
# About us page
@app.route('/aboutus')
def about():
return render_template('about.html')
# Contact us page
@app.route('/admissions')
def contact():
return render_template('admissions.html')
# Services page
@app.route('/services')
def services():
return render_template('services.html')
# On debug mode
if __name__ == '__main__':
app.run(debug=True)