]> git.parisson.com Git - telecaster-instance.git/commitdiff
update settings against teleforma 1.1
authoryomguy <yomguy@parisson.com>
Wed, 19 Jul 2017 22:51:11 +0000 (00:51 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 19 Jul 2017 22:51:11 +0000 (00:51 +0200)
.gitignore [new file with mode: 0644]
gitmanage.py
settings.py
settings.pyc [deleted file]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..539da74
--- /dev/null
@@ -0,0 +1 @@
+*.py[co]
index f782d74abe92413a9710fd82bf69180173657fc3..6cfd2c48d6d99d2d68bc44ca90011a8013e547fd 100644 (file)
@@ -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):
index 3374a5a2a90defe0dc4570658f0f98dcd955f639..19d025916a805c83246098805b5ee9a816f533a5 100644 (file)
@@ -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 (file)
index c958dff..0000000
Binary files a/settings.pyc and /dev/null differ