-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsettings.py
88 lines (77 loc) · 3.41 KB
/
settings.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import os
import time
from urllib.parse import urlsplit
import tornado.options
os.environ['COOKIE_SECRET'] = os.environ.get("SECRET_TOKEN", "placeholder")
os.environ['MONGODB_URL'] = os.environ.get("DB_URI", "mongodb://localhost:27017/apptrack")
os.environ['DB_NAME'] = urlsplit(os.environ['MONGODB_URL']).path.replace("/","")
os.environ['ZIGGEO_TOKEN'] = urlsplit(os.environ.get("ZIGGEO_URL", "https://token:[email protected]")).username
os.environ['FILE_PICKER_KEY'] = os.environ.get("FILEPICKER_API_KEY", "placeholder")
os.environ["ADMINS"] = os.environ.get("ADMINS", "adminname:adminpassword")
os.environ['BASE_URL'] = "localhost"
os.environ['PATH'] = "/app/bin:/app/vendor/nginx/sbin:/app/vendor/php/bin:/app/vendor/php/sbin:/usr/local/bin:/usr/bin:/bin"
os.environ['TZ'] = "US/Eastern"
os.environ['PROJECT_ROOT'] = os.path.abspath(os.path.join(os.path.dirname(__file__)))
os.environ['SITE_TITLE'] = "Applicant Tracking"
os.environ['APPLY_TITLE'] = "Apply"
os.environ['STRING_BOTTOM'] = "We support workplace diversity and do not discriminate in employment matters on the basis of race, color, religion, gender, national origin, age, military service eligibility, veteran status, sexual orientation, marital status, disability, or any other protected class."
os.environ['STRING_CONFIRMATION'] = "We will begin reviewing applications shortly, and we will be in touch regarding next steps."
os.environ["STRING_WELCOME"] = "Thanks for taking the time to apply for our position."
os.environ["STRING_INTRO"] = "In the first section (below), we're looking to see links that will help us get to know you. This could be your personal blog, Tumblr, Github profile or Twitter account - whatever represents you best. We expect your web presence to represent who you are, not who you think an employer wishes you were, so please don't waste time sanitizing your web presence before sending us there. We get it."
global_data = {
"VIDEOS": [{
"question": "Why are you interested in the position?",
"limit": 90,
"required": True
}, {
"question": "What inspires you the most, and why?",
"limit": 120,
"required": True
}],
"FIELDS": [{
"label": "Your Name",
"name": "name",
"type": "text",
"placeholder": "",
"required": True
}, {
"label": "Email",
"name": "email",
"type": "text",
"placeholder": "",
"required": True
}, {
"label": "Location",
"name": "location",
"type": "text",
"placeholder": "Where are you now?",
"required": True
}, {
"label": "You, on the Web",
"name": "web",
"type": "textarea",
"placeholder": "Any public social links that help us get to know you. (Please put each link on a new line.)",
"required": True
}, {
"label": "Projects",
"name": "projects",
"type": "textarea",
"placeholder": "Any links to projects you've built or worked on. (Please put each link on a new line.)",
"required": False
}, {
"label": "CV",
"name": "cv",
"type": "file",
"placeholder": "Your CV (PDF, DOC, TXT)",
"required": False
}]
}
try:
import settings_local_environ
if settings_local_environ.global_data :
global_data = settings_local_environ.global_data
except:
pass
time.tzset()
def get(key):
return os.environ.get(key.upper())