# HG changeset patch # User ymh # Date 1396022627 -3600 # Node ID 422b7d138196848f7ae9ab96838e12b1f15943ad # Parent 7ff7824644d3076b7a1be57b24d4edc4f0069436 add wsgi app diff -r 7ff7824644d3 -r 422b7d138196 sbin/sync/config.py.tmpl --- a/sbin/sync/config.py.tmpl Fri Mar 28 09:03:15 2014 +0100 +++ b/sbin/sync/config.py.tmpl Fri Mar 28 17:03:47 2014 +0100 @@ -43,14 +43,24 @@ 'db_engine':'postgresql_psycopg2', 'db_name':'spel', 'db_user': 'iri', - 'db_password': '', + 'db_password': '', 'db_host': 'localhost', 'db_port': 5432, 'haystack_url' : 'http://localhost:9200', 'haystack_index' : 'spel', 'log_file' : '/var/log/www/spel/spel.log', - 'secret_key' : ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)]), - }, + 'secret_key' : ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)]), + 'stream_url' : 'http://spectacleenlignes.fr/', + 'stream_src_prefix' : '', + 'ffmpeg_path': '', + 'google_analytics_code': '', + 'email_use_tls' : 'True', + 'email_host' : '', + 'email_host_user' : '', + 'email_port' : '', + 'forbidden_stream_url' : '', + 'audio_record_url' : '' + }, } env.check_folder_access = True diff -r 7ff7824644d3 -r 422b7d138196 src/spel/django_wsgi.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/spel/django_wsgi.py Fri Mar 28 17:03:47 2014 +0100 @@ -0,0 +1,11 @@ +import os + +os.environ['DJANGO_SETTINGS_MODULE'] = 'spel.settings' + +import django.core.handlers.wsgi + +application = django.core.handlers.wsgi.WSGIHandler() + +if os.environ.get('PYDEV_DEBUG', "False").lower() in ["true", "1", "t"]: + import pydevd #@UnresolvedImport + pydevd.settrace(suspend=False)