From b011df7dcd74eedc89677a257ebe90b374bcdebd Mon Sep 17 00:00:00 2001 From: bkfox Date: Thu, 29 Dec 2016 20:48:57 +0100 Subject: [PATCH] fix wrong attr name in Station's properties outputs and inputs --- README.md | 4 +++- aircox/models.py | 4 ++-- scripts/supervisord_aircox | 6 +++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2ecefc0..1d4e461 100755 --- a/README.md +++ b/README.md @@ -49,11 +49,13 @@ Python modules: * `bleach`: 'aircox.cms` (comments sanitization) * `dateutils`: `aircox.programs` (used for tests) * `Pillow`: `aircox.cms` (needed by `wagtail`) -* Django's required database modules +* Django's required database modules (remember to install `mysqlclient` if you plan to use a MySql database server) External applications: * `liquidsoap`: `aircox` (generation of the audio streams) * `sox`: `aircox` (check sounds quality and metadatas) +* `gunicorn`: WSGI server to be used in production (installed along as dependency) +* `supervisord`: supervisor * note there might be external dependencies for python's Pillow too * sqlite, mysql or any database library that you need to run a database, that is supported by Django (+ eventual python deps) diff --git a/aircox/models.py b/aircox/models.py index 6b6b1f5..9cab39b 100755 --- a/aircox/models.py +++ b/aircox/models.py @@ -212,7 +212,7 @@ class Station(Nameable): Return all active input ports of the station """ return self.port_set.filter( - direction = Port.Direction.Input, + direction = Port.Direction.input, active = True ) @@ -222,7 +222,7 @@ class Station(Nameable): Return all active output ports of the station """ return self.port_set.filter( - direction = Port.Direction.Output, + direction = Port.Direction.output, active = True, ) diff --git a/scripts/supervisord_aircox b/scripts/supervisord_aircox index 6c7cbd2..7d8df1a 100755 --- a/scripts/supervisord_aircox +++ b/scripts/supervisord_aircox @@ -21,7 +21,7 @@ autostart = true autorestart = true stdout_logfile = /srv/apps/aircox/logs/server.log redirect_stderr = true -environment=AIRCOX_DEBUG="False",PATH="/srv/apps/aircox/venv/bin" +environment=AIRCOX_DEBUG="False" [program:aircox_sounds_monitor] command = /srv/apps/aircox/scripts/launch_in_venv ./manage.py sounds_monitor -qsm @@ -31,7 +31,7 @@ autostart = true autorestart = true stdout_logfile = /srv/apps/aircox/logs/sounds_monitor.log redirect_stderr = true -environment=AIRCOX_DEBUG="False",PATH="/srv/apps/aircox/venv/bin" +environment=AIRCOX_DEBUG="False" [program:aircox_streamer] command = /srv/apps/aircox/scripts/launch_in_venv ./manage.py streamer -crm @@ -41,6 +41,6 @@ autostart = true autorestart = true stdout_logfile = /srv/apps/aircox/logs/streamer.log redirect_stderr = true -environment=AIRCOX_DEBUG="False",PATH="/srv/apps/aircox/venv/bin" +environment=AIRCOX_DEBUG="False"