Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
srct.gmu.io
Commits
0003ed2b
Commit
0003ed2b
authored
Jan 03, 2017
by
Mark Stenglein
Browse files
Init new blank site
parent
262298fe
Changes
64
Show whitespace changes
Inline
Side-by-side
srctweb/index.md
0 → 100644
View file @
0003ed2b
---
# You don't need to edit this file, it's empty on purpose.
# Edit theme's home layout instead if you wanna make some changes
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout
:
home
---
srctweb/srctweb.py
deleted
100755 → 0
View file @
262298fe
#!flask/bin/python
from
website
import
website
if
__name__
==
'__main__'
:
## This is for debugging use only.
website
.
run
(
debug
=
True
)
## This is for execution via gunicorn.
# gunicorn command
# gunicorn srctweb:website -b 127.0.0.1:8001
srctweb/website/__init__.py
deleted
100644 → 0
View file @
262298fe
from
flask
import
Flask
from
flask.ext.gravatar
import
Gravatar
website
=
Flask
(
__name__
)
from
website
import
views
# initialize gravatar defaults
gravatar
=
Gravatar
(
website
,
size
=
80
,
rating
=
'g'
,
default
=
'mm'
,
force_default
=
False
,
use_ssl
=
False
,
base_url
=
None
)
srctweb/website/views.py
deleted
100644 → 0
View file @
262298fe
from
flask
import
render_template
from
website
import
website
@
website
.
route
(
'/'
)
def
index
():
return
render_template
(
"index.html"
,
renderHead
=
False
,
)
@
website
.
route
(
'/calendar/'
)
def
calendar
():
return
render_template
(
"calendar.html"
,
renderHead
=
True
,
)
@
website
.
route
(
'/contact/'
)
def
contact
():
return
render_template
(
"contact.html"
,
renderHead
=
True
,
)
@
website
.
route
(
'/documents/'
)
def
documents
():
return
render_template
(
"documents.html"
,
renderHead
=
True
,
)
@
website
.
route
(
'/people/'
)
def
people
():
return
render_template
(
"people.html"
,
renderHead
=
True
,
)
@
website
.
route
(
'/projects/'
)
def
projects
():
return
render_template
(
"projects.html"
,
renderHead
=
True
,
)
@
website
.
route
(
'/opt-out/'
)
def
optOut
():
return
render_template
(
"privacy_opt_out.html"
,
)
### DOCUMENTS ###
@
website
.
route
(
'/documents/constitution/'
)
def
constitution
():
return
render_template
(
"documents/constitution.html"
,
renderHead
=
True
,
)
@
website
.
route
(
'/documents/intellectual_property/'
)
def
intellectualProperty
():
return
render_template
(
"documents/intellectual_property.html"
,
renderHead
=
True
,
)
@
website
.
route
(
'/documents/logos/'
)
def
logos
():
return
render_template
(
"documents/logos.html"
,
renderHead
=
True
,
)
@
website
.
route
(
'/documents/privacy_policy/'
)
def
privacyPolicy
():
return
render_template
(
"documents/privacy_policy.html"
,
renderHead
=
True
,
)
@
website
.
route
(
'/documents/software_freedom/'
)
def
softwareFreedom
():
return
render_template
(
"documents/software_freedom.html"
,
renderHead
=
True
,
)
@
website
.
route
(
'/documents/terms_of_service/'
)
def
termsOfService
():
return
render_template
(
"documents/terms_of_service.html"
,
renderHead
=
True
,
)
@
website
.
route
(
'/documents/usage_policy/'
)
def
usagePolicy
():
return
render_template
(
"documents/usage_policy.html"
,
renderHead
=
True
,
)
# 404 error
@
website
.
errorhandler
(
404
)
def
page_not_found
(
error
):
return
render_template
(
"404.html"
),
404
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment