4
4
5
5
from django .utils import timezone
6
6
7
- HACKATHON_NAME = " HackUPC"
7
+ HACKATHON_NAME = ' HackUPC'
8
8
# What's the name for the application
9
- HACKATHON_APPLICATION_NAME = " My HackUPC"
9
+ HACKATHON_APPLICATION_NAME = ' My HackUPC'
10
10
# Hackathon timezone
11
- TIME_ZONE = " CET"
11
+ TIME_ZONE = ' CET'
12
12
# This description will be used on the html and sharing meta tags
13
- HACKATHON_DESCRIPTION = " Join us for BarcelonaTech's hackathon. 36h. May 3 - 5."
13
+ HACKATHON_DESCRIPTION = ' Join us for BarcelonaTech\ ' s hackathon. 36h. May 3 - 5.'
14
14
# Domain where application is deployed, can be set by env variable
15
- HACKATHON_DOMAIN = os .environ .get (" DOMAIN" , None )
16
- HEROKU_APP_NAME = os .environ .get (" HEROKU_APP_NAME" , None )
15
+ HACKATHON_DOMAIN = os .environ .get (' DOMAIN' , None )
16
+ HEROKU_APP_NAME = os .environ .get (' HEROKU_APP_NAME' , None )
17
17
if HEROKU_APP_NAME and not HACKATHON_DOMAIN :
18
- HACKATHON_DOMAIN = " %s.herokuapp.com" % HEROKU_APP_NAME
18
+ HACKATHON_DOMAIN = ' %s.herokuapp.com' % HEROKU_APP_NAME
19
19
elif not HACKATHON_DOMAIN :
20
- HACKATHON_DOMAIN = " localhost:8000"
20
+ HACKATHON_DOMAIN = ' localhost:8000'
21
21
# Hackathon contact email: where should all hackers contact you. It will also be used as a sender for all emails
22
- HACKATHON_CONTACT_EMAIL = " [email protected] "
22
+ HACKATHON_CONTACT_EMAIL = ' [email protected] '
23
23
# Hackathon logo url, will be used on all emails
24
- HACKATHON_LOGO_URL = " https://my.hackupc.com/static/logo.png"
24
+ HACKATHON_LOGO_URL = ' https://my.hackupc.com/static/logo.png'
25
25
26
- HACKATHON_OG_IMAGE = " https://hackupc.com/ogimage.png?v=2021"
26
+ HACKATHON_OG_IMAGE = ' https://hackupc.com/ogimage.png?v=2021'
27
27
# (OPTIONAL) Track visits on your website
28
- HACKATHON_GOOGLE_ANALYTICS = " UA-69542332-2"
28
+ HACKATHON_GOOGLE_ANALYTICS = ' UA-69542332-2'
29
29
# (OPTIONAL) Hackathon Twitter user
30
- HACKATHON_TWITTER_ACCOUNT = " hackupc"
30
+ HACKATHON_TWITTER_ACCOUNT = ' hackupc'
31
31
# (OPTIONAL) Hackathon Facebook page
32
- HACKATHON_FACEBOOK_PAGE = " hackupc"
32
+ HACKATHON_FACEBOOK_PAGE = ' hackupc'
33
33
# (OPTIONAL) Hackathon YouTube channel
34
- HACKATHON_YOUTUBE_PAGE = " UCiiRorGg59Xd5Sjj9bjIt-g"
34
+ HACKATHON_YOUTUBE_PAGE = ' UCiiRorGg59Xd5Sjj9bjIt-g'
35
35
# (OPTIONAL) Hackathon Instagram user
36
- HACKATHON_INSTAGRAM_ACCOUNT = " hackupc"
36
+ HACKATHON_INSTAGRAM_ACCOUNT = ' hackupc'
37
37
# (OPTIONAL) Hackathon Medium user
38
- HACKATHON_MEDIUM_ACCOUNT = " hackupc"
38
+ HACKATHON_MEDIUM_ACCOUNT = ' hackupc'
39
39
# (OPTIONAL) Github Repo for this project (so meta)
40
- HACKATHON_GITHUB_REPO = " https://github.com/hackupc/myhackupc/"
40
+ HACKATHON_GITHUB_REPO = ' https://github.com/hackupc/myhackupc/'
41
41
42
42
# (OPTIONAL) Applications deadline
43
- HACKATHON_APP_DEADLINE = timezone .datetime (
44
- 2025 , 5 , 3 , 23 , 59 , tzinfo = timezone .pytz .timezone (TIME_ZONE )
45
- )
46
- VOLUNTEER_APP_DEADLINE = timezone .datetime (
47
- 2025 , 5 , 9 , 23 , 59 , tzinfo = timezone .pytz .timezone (TIME_ZONE )
48
- )
49
- MENTOR_APP_DEADLINE = timezone .datetime (
50
- 2025 , 5 , 1 , 23 , 59 , tzinfo = timezone .pytz .timezone (TIME_ZONE )
51
- )
43
+ HACKATHON_APP_DEADLINE = timezone .datetime (2023 , 5 , 3 , 23 , 59 , tzinfo = timezone .pytz .timezone (TIME_ZONE ))
44
+ VOLUNTEER_APP_DEADLINE = timezone .datetime (2023 , 5 , 9 , 23 , 59 , tzinfo = timezone .pytz .timezone (TIME_ZONE ))
45
+ MENTOR_APP_DEADLINE = timezone .datetime (2023 , 5 , 1 , 23 , 59 , tzinfo = timezone .pytz .timezone (TIME_ZONE ))
52
46
# (OPTIONAL) Online checkin activated
53
- ONLINE_CHECKIN = timezone .datetime (
54
- 2022 , 4 , 29 , 17 , 00 , tzinfo = timezone .pytz .timezone (TIME_ZONE )
55
- )
47
+ ONLINE_CHECKIN = timezone .datetime (2022 , 4 , 29 , 17 , 00 , tzinfo = timezone .pytz .timezone (TIME_ZONE ))
56
48
# (OPTIONAL) When to arrive at the hackathon
57
- HACKATHON_ARRIVE = ""
49
+ HACKATHON_ARRIVE = ''
58
50
59
51
# (OPTIONAL) When to arrive at the hackathon
60
- HACKATHON_LEAVE = ""
52
+ HACKATHON_LEAVE = ''
61
53
62
54
# (OPTIONAL) Hackathon live page
63
- HACKATHON_LIVE_PAGE = " https://live.hackupc.com"
55
+ HACKATHON_LIVE_PAGE = ' https://live.hackupc.com'
64
56
65
57
# (OPTIONAL) Regex to automatically match organizers emails and set them as organizers when signing up
66
- REGEX_HACKATHON_ORGANIZER_EMAIL = " ^.*@hackupc\.com$"
58
+ REGEX_HACKATHON_ORGANIZER_EMAIL = ' ^.*@hackupc\.com$'
67
59
68
60
# (OPTIONAL) Send 500 errors to email while on production mode
69
- HACKATHON_DEV_EMAILS = [
70
-
71
- ]
61
+ HACKATHON_DEV_EMAILS = [
'[email protected] ' , ]
72
62
73
63
# Baggage configuration
74
64
BAGGAGE_ENABLED = True
77
67
# Reimbursement configuration
78
68
REIMBURSEMENT_ENABLED = True
79
69
DEFAULT_REIMBURSEMENT_AMOUNT = 100
80
- CURRENCY = "€"
70
+ CURRENCY = '€'
81
71
REIMBURSEMENT_EXPIRY_DAYS = 5
82
- REIMBURSEMENT_REQUIREMENTS = "You have to submit a project and demo it during the event in order to get reimbursed"
83
- REIMBURSEMENT_DEADLINE = timezone .datetime (
84
- 2023 , 5 , 11 , 23 , 59 , tzinfo = timezone .pytz .timezone (TIME_ZONE )
85
- )
72
+ REIMBURSEMENT_REQUIREMENTS = 'You have to submit a project and demo it during the event in order to get reimbursed'
73
+ REIMBURSEMENT_DEADLINE = timezone .datetime (2023 , 5 , 11 , 23 , 59 , tzinfo = timezone .pytz .timezone (TIME_ZONE ))
86
74
87
75
# (OPTIONAL) Max team members. Defaults to 4
88
76
TEAMS_ENABLED = True
94
82
# (OPTIONAL) Slack credentials
95
83
# Highly recommended to create a separate user account to extract the token from
96
84
SLACK = {
97
- " team" : os .environ .get (" SL_TEAM" , " test" ),
85
+ ' team' : os .environ .get (' SL_TEAM' , ' test' ),
98
86
# Get it here: https://api.slack.com/custom-integrations/legacy-tokens
99
- " token" : os .environ .get (" SL_TOKEN" , None ),
87
+ ' token' : os .environ .get (' SL_TOKEN' , None )
100
88
}
101
89
102
90
# (OPTIONAL) Logged in cookie
107
95
# Hardware configuration
108
96
# Hardware request time length (in minutes)
109
97
HARDWARE_ENABLED = True
110
- # Hardware request time length (in minutes)
98
+ #Hardware request time length (in minutes)
111
99
HARDWARE_REQUEST_TIME = 15
112
100
113
101
114
102
SLACK_BOT = {
115
- "id" : os .environ .get (" SL_BOT_ID" , None ),
116
- " token" : os .environ .get (" SL_BOT_TOKEN" , None ),
117
- " channel" : os .environ .get (" SL_BOT_CHANNEL" , None ),
118
- " director1" : os .environ .get (" SL_BOT_DIRECTOR1" , None ),
119
- " director2" : os .environ .get (" SL_BOT_DIRECTOR2" , None ),
103
+ 'id' : os .environ .get (' SL_BOT_ID' , None ),
104
+ ' token' : os .environ .get (' SL_BOT_TOKEN' , None ),
105
+ ' channel' : os .environ .get (' SL_BOT_CHANNEL' , None ),
106
+ ' director1' : os .environ .get (' SL_BOT_DIRECTOR1' , None ),
107
+ ' director2' : os .environ .get (' SL_BOT_DIRECTOR2' , None )
120
108
}
121
109
# Enable judging tab
122
110
JUDGING_ENABLED = False
131
119
# Enable blacklist separate pipeline (disabled by default)
132
120
BLACKLIST_ENABLED = True
133
121
134
- SUPPORTED_RESUME_EXTENSIONS = [" .pdf" ]
122
+ SUPPORTED_RESUME_EXTENSIONS = [' .pdf' ]
135
123
136
124
# Mentor/Volunteer applications can expire if they are invited, set to False to not
137
125
MENTOR_EXPIRES = False
141
129
HYBRID_HACKATHON = False
142
130
N_MAX_LIVE_HACKERS = 600
143
131
144
- SERVER_EMAIL = " HackUPC Team <[email protected] >"
132
+ SERVER_EMAIL = ' HackUPC Team <[email protected] >'
145
133
146
- CODE_CONDUCT_LINK = " https://legal.hackersatupc.org/hackupc/code_of_conduct"
147
- LEGAL_LINK = " https://legal.hackersatupc.org/hackupc/legal_notice"
148
- PRIVACY_LINK = " https://legal.hackersatupc.org/hackupc/privacy_and_cookies"
149
- TERMS_LINK = " https://legal.hackersatupc.org/hackupc/terms_and_conditions"
134
+ CODE_CONDUCT_LINK = ' https://legal.hackersatupc.org/hackupc/code_of_conduct'
135
+ LEGAL_LINK = ' https://legal.hackersatupc.org/hackupc/legal_notice'
136
+ PRIVACY_LINK = ' https://legal.hackersatupc.org/hackupc/privacy_and_cookies'
137
+ TERMS_LINK = ' https://legal.hackersatupc.org/hackupc/terms_and_conditions'
0 commit comments