From: yomguy Date: Wed, 19 Jul 2017 22:51:11 +0000 (+0200) Subject: update settings against teleforma 1.1 X-Git-Tag: 1.0~4^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=647a700f2a85a9ff7d8277a68f1795aec40b0a88;p=telecaster-instance.git update settings against teleforma 1.1 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..539da74 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.py[co] diff --git a/gitmanage.py b/gitmanage.py index f782d74..6cfd2c4 100644 --- a/gitmanage.py +++ b/gitmanage.py @@ -42,6 +42,10 @@ class GitManage(object): args = 'diff-tree -s HEAD' self.process(args) + def branch(self): + args = 'branch' + self.process(args) + def add_repo(self, name, repo): for app in self.apps: if not app in self.exclude and os.path.isdir(self.dir + os.sep + app): diff --git a/settings.py b/settings.py index 3374a5a..19d0259 100644 --- a/settings.py +++ b/settings.py @@ -61,7 +61,7 @@ MEDIA_ROOT = '/home/telecaster/archives/' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" -MEDIA_URL = '/media/' +MEDIA_URL = 'http://192.168.1.65:8040/' # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files @@ -131,6 +131,7 @@ INSTALLED_APPS = ( 'jsonrpc', 'south', 'teleforma', + 'teleforma.exam', 'sorl.thumbnail', 'django_extensions', 'pagination', @@ -139,7 +140,6 @@ INSTALLED_APPS = ( 'notes', 'timezones', 'jqchat', - 'googletools', 'telecaster', ) @@ -150,6 +150,8 @@ TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.i18n", "django.core.context_processors.media", 'django.core.context_processors.static', + 'teleforma.context_processors.periods', + 'telecaster.context_processors.host', ) TELEMETA_ORGANIZATION = 'Pre-Barreau' @@ -168,6 +170,7 @@ TELEMETA_DEFAULT_GRAPHER_SIZES = ['360x130', '640x130'] TELEMETA_DEFAULT_GRAPHER_ID = 'waveform_contour_wh' AUTH_PROFILE_MODULE = 'telemeta.userprofile' +AUTH_USER_MODEL = 'auth.User' LOGIN_URL = '/login/' LOGIN_REDIRECT_URL = reverse_lazy('teleforma-desk') SESSION_EXPIRE_AT_BROWSER_CLOSE = False @@ -179,9 +182,49 @@ EMAIL_SUBJECT_PREFIX = '[' + TELEMETA_ORGANIZATION.decode('utf8') + '] ' POSTMAN_AUTO_MODERATE_AS = True -TELECASTER_CONF = [{'type':'mp3','server_type':'icecast','conf':'/etc/telecaster/deefuzzer_mp3.xml', 'port':'8000'}, - {'type':'webm','server_type':'stream-m','conf':'/etc/telecaster/deefuzzer_webm.xml', 'port':'8080'}, ] +ROUTER_IP = '109.190.89.141' + +TELECASTER_MASTER_SERVER = 'e-learning.crfpa.pre-barreau.com' +TELECASTER_RSYNC_SERVER = 'telecaster@eddy.parisson.com:archives/' +TELECASTER_RSYNC_LOG = '/var/log/telecaster/rsync.log' +TELECASTER_CONF = [{'type':'mp3','server_type':'icecast', + 'conf':'/etc/telecaster/deefuzzer/telecaster_mp3_default.xml', + 'port':'8000'}, + {'type':'webm','server_type':'stream-m', + 'conf':'/etc/telecaster/deefuzzer/telecaster_webm_default.xml', + 'port':'8080'}, ] + +TELEFORMA_E_LEARNING_TYPE = 'CRFPA' +TELEFORMA_GLOBAL_TWEETER = False +TELEFORMA_PERIOD_TWEETER = True +TELEFORMA_EXAM_TOPIC_DEFAULT_DOC_TYPE_ID = 4 +TELEFORMA_EXAM_SCRIPT_UPLOAD = True +TELEFORMA_REGISTER_DEFAULT_DOC_ID = 5506 +TELEFORMA_PERIOD_DEFAULT_ID = 6 +TELEFORMA_EXAM_MAX_SESSIONS = 10 +TELEFORMA_EXAM_SCRIPT_MAX_SIZE = 26214400 + +PASSWORD_HASHERS = ( + 'django.contrib.auth.hashers.PBKDF2PasswordHasher', +) + +BOX_API_TOKEN = 'D2pBaN8YqjGIfS0tKrgnMP93' + +FILE_UPLOAD_TEMP_DIR = '/mnt/data/tmp' + +SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies" + +SOUTH_MIGRATION_MODULES = { + 'captcha': 'captcha.south_migrations', +} + +SUIT_CONFIG = { + 'ADMIN_NAME': 'TeleForma Admin', +} + + +# Name of cache backend to cache user agents. If it not specified default +# cache alias will be used. Set to `None` to disable caching. +#USER_AGENTS_CACHE = 'default' -TELECASTER_RSYNC_SERVER = 'telecaster@192.168.0.31:archives/' -TELECASTER_RSYNC_LOG = '/home/telecaster/logs/rsync.log' diff --git a/settings.pyc b/settings.pyc deleted file mode 100644 index c958dff..0000000 Binary files a/settings.pyc and /dev/null differ