-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.py.dist
51 lines (36 loc) · 1.71 KB
/
config.py.dist
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
# Configuration example
import logging
import os
# In Windows one less '/' is needed. For instance:
# SQLALCHEMY_DATABASE_URI = 'sqlite:////%s/database.db' % os.getcwd() (WINDOWS ONLY)
SQLALCHEMY_DATABASE_URI = 'sqlite:////%s/database.db' % os.getcwd()
USE_PYMYSQL = False
# IMPORTANT: Each login app is bound to a particular system (i.e., it contains the URL of the particular appcomposer).
# The administrator must create this login app and put it here. So as to create it, set SHOW_LOGIN_APP_CREATION to True
# follow the instructions in the login screen, make the URL public and configure it in this file. Then, set
# SHOW_LOGIN_APP_CREATION again to False. This procedure will not work if you deploy the system in localhost (since
# Graasp will not be able to access it).
GRAASP_LOGIN_APP = 'https://graasp.epfl.ch/#url=appcomposer_pablo'
SHOW_LOGIN_APP_CREATION = False
# By default, the translator's MongoDB pushes are not active
ACTIVATE_TRANSLATOR_MONGODB_PUSHES = False
# MongoDB pushes URI. Not used unless the MongoDB pushes are enabled.
MONGODB_PUSHES_URI = "mongodb://localhost"
# How often to sync the database. In the case here, sync the whole database
# every hour (3600 seconds).
# Note that this is an expensive operation.
MONGODB_SYNC_PERIOD = 3600
# Where will the notification mails come from.
SENDER_ADDR = "APPCOMPOSER@no-reply.com"
# SMTP Server through which to send mails.
SMTP_SERVER = None
# List of Admins to send mails to when an error occurs.
ADMINS = []
# Logfile
LOGFILE = "logfile.log"
APPCOMP_LOGGING_LEVEL = "WARNING"
NGAPPS_DEV_MODE = False
TRANSLATOR_DEFAULT_EMAIL = 'weblab+appcomposer@deusto.es'
EXTERNAL_TRANSLATORS = {
# 'microsoft' : { 'client_id' : '...' , 'client_secret' : '...' }
}