-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
73 lines (70 loc) · 1.71 KB
/
config.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
# -*- coding: utf-8 -*-
"""Конфигурация проекта"""
import os
CSRF_ENABLED = True
SECRET_KEY = '1+$VEPUx@pTtn@s$$$$$woRt'
MAX_CONTENT_LENGTH = 16 * 1024 * 1024
ALLOWED_EXTENSIONS = ['c', 'cs', 'cpp', 'css', 'html', 'java', 'js', 'py']
ALLOWED_LANGUAGES = [
{
"id": 1,
"name": 'C',
"extension": 'c',
"type": 'text/x-csrc'
},
{
"id": 2,
"name": 'C#',
"extension": 'cs',
"type": 'text/x-csharp'
},
{
"id": 3,
"name": 'C++',
"extension": 'cpp',
"type": 'text/x-c++src'
},
{
"id": 4,
"name": 'CSS',
"extension": 'css',
"type": 'text/css'
},
{
"id": 5,
"name": 'HTML',
"extension": 'html',
"type": 'text/html'
},
{
"id": 6,
"name": 'Java',
"extension": 'java',
"type": 'text/x-java'
},
{
"id": 7,
"name": 'JavaScript',
"extension": 'js',
"type": 'text/javascript'
},
{
"id": 8,
"name": 'Python',
"extension": 'py',
"type": 'text/x-python'
}
]
SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
SOCKET_MODE = os.environ['SOCKET_MODE']
RECAPTCHA_ENABLED = True
RECAPTCHA_PUBLIC_KEY = "6Lflui0UAAAAAA2__4MT4YkchA4o6zi-aZvjdjp8"
RECAPTCHA_PRIVATE_KEY = "6Lflui0UAAAAAIHmLZuWTy6cBl9N2l7X9kg5VcTB"
RECAPTCHA_THEME = "dark"
RECAPTCHA_TYPE = "image"
RECAPTCHA_SIZE = "compact"
RECAPTCHA_RTABINDEX = 10
TRELLO_API_KEY = "d6e8fa6015d650dcbe3858d03440d978"
TRELLO_API_TOKEN = "396a451cf030f24d8306d3c32e8d8334668f82e84c44c6471ad6d7153e130293"
TRELLO_LIST_ID = "599d87c2a99b40ef9fa5bd80"