Commit 391451ae authored by Akshay Karthik's avatar Akshay Karthik

improve setup + pep8

parent 43856bb9
import sys
# python 3
input = raw_input
if __name__ == '__main__':
from website import db
db.create_all()
from website.models import Member
dev = Member(name=sys.argv[1], username=sys.argv[2], developer=True)
name = input("Please enter your name: ")
username = input("Please enter your gmu-username: ")
dev = Member(name=name, username=username, developer=True)
db.session.add(dev)
db.session.commit()
......@@ -49,15 +49,16 @@ def people():
developers = Member.query.filter_by(developer=True).all()
return render_template("people.html",
renderHead = True,
executives = executives,
developers = developers
renderHead=True,
executives=executives,
developers=developers
)
@srctweb.route('/projects/')
def projects():
return render_template("projects.html",
renderHead = True,
renderHead=True,
projects=Project.query.all()
)
@srctweb.route('/events/')
......@@ -85,47 +86,48 @@ def optOut():
@srctweb.route('/documents/constitution/')
def constitution():
return render_template("documents/constitution.html",
renderHead = True,
renderHead=True,
)
@srctweb.route('/documents/intellectual_property/')
def intellectualProperty():
return render_template("documents/intellectual_property.html",
renderHead = True,
renderHead=True,
)
@srctweb.route('/documents/logos/')
def logos():
return render_template("documents/logos.html",
renderHead = True,
renderHead=True,
)
@srctweb.route('/documents/privacy_policy/')
def privacyPolicy():
return render_template("documents/privacy_policy.html",
renderHead = True,
renderHead=True,
)
@srctweb.route('/documents/software_freedom/')
def softwareFreedom():
return render_template("documents/software_freedom.html",
renderHead = True,
renderHead=True,
)
@srctweb.route('/documents/terms_of_service/')
def termsOfService():
return render_template("documents/terms_of_service.html",
renderHead = True,
renderHead=True,
)
@srctweb.route('/documents/usage_policy/')
def usagePolicy():
return render_template("documents/usage_policy.html",
renderHead = True,
renderHead=True,
)
# 404 error
@srctweb.errorhandler(404)
def page_not_found(error):
return render_template("404.html"), 404
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment