forked from Barcamp-Brno/barcamp-brno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug.py
executable file
·35 lines (29 loc) · 872 Bytes
/
debug.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
#!/usr/bin/python
# coding: utf-8
"""
DEBUG application urls :)
https://developers.facebook.com/apps/536796489696963
https://dev.twitter.com/apps/4291778/show
"""
from barcamp import create_app, schedule
from datetime import datetime
import os
if __name__ == '__main__':
config = {
'FACEBOOK_ID': '',
'FACEBOOK_SECRET': '',
'TWITTER_KEY': '',
'TWITTER_SECRET': '',
#'TESTING': True ,
'SECRET_KEY': 'jednadvehonzajde',
'MAIL_SERVER': 'smtp.sendgrid.net',
'MAIL_PORT': 587,
'MAIL_USERNAME': os.environ.get('SENDGRID_USERNAME', ''),
'MAIL_PASSWORD': os.environ.get('SENDGRID_PASSWORD', ''),
# 'TEST_DATE': datetime(2017, 4, 2),
}
config.update(schedule)
config.update(os.environ)
app = create_app(config)
app.debug = True
app.run("0", 9099)