-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
43 lines (34 loc) · 994 Bytes
/
config.py
File metadata and controls
43 lines (34 loc) · 994 Bytes
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
import os
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
DROP_ENDPOINT = True
ENABLE_EMAIL_ACTIVATION = True
MAIL_FAIL_SILENTLY = True
MONGODB_SETTINGS = {
'DB': "project_runner"
}
CELERY_BROKER_URL = 'amqp://localhost'
SECRET_KEY = "123?"
PASS_RESET_EXPIRATION = 60 * 60 # in seconds
ALLOWED_CODE_EXTENSIONS = ['zip', 'tar', 'gz', 'bz', 'rar', '7z']
ALLOWED_TEST_EXTENSIONS = ['java','class']
# 100 MB
MAX_CONTENT_LENGTH = 100 * 1024 * 1024
# In bytes
FILE_BUFFER_SIZE = os.stat('.').st_blksize
TEMP_FILE_DIR = 'temofile'
ANT_BUILD_FILE_NAME = 'build.xml'
ANT_TESTS_DIR_NAME = 'tests'
ANT_BUILD_DIR_NAME = 'build'
ANT_RUN_FILE_NAME = 'ant_script.sh'
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CLEAN_TEMP_DIRS = True
SUMBISSIONS_PAGE_SIZE = 10
STUDENT_PAGE_SIZE = 5
TA_PAGE_SIZE = 5
COURSE_PAGE_SIZE = 5
SEARCH_RESULTS_PER_PAGE = 10
PROJECT_TEAM_GRADES_PER_PAGE = 10
DEFAULT_MAIL_SENDER='no-reply@evaluator.in'
DELETE_SUBMISSIONS = False