From: Guillaume Pellerin Date: Wed, 23 Jun 2021 13:59:31 +0000 (+0200) Subject: fix staging env, fix imports for streaming X-Git-Tag: 2.1~66^2^2^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9b5f9a1bce6102d9c2cc5c147549f5d3e6bd6a1e;p=teleforma.git fix staging env, fix imports for streaming --- diff --git a/env/staging.env b/env/staging.env index d82e0047..90cb7436 100644 --- a/env/staging.env +++ b/env/staging.env @@ -1,4 +1,7 @@ -BRAHMS_ENV=STAGING DEBUG=True -GITLAB_USER=www-data -GITLAB_PWD=s%27%2F%408W%3B%5EC%5EU%7Bq%5CC%3A%29WEu-fVeX%23Y%24tx \ No newline at end of file + +DB_PORT=5432 +DB_HOST=postgres +POSTGRES_PASSWORD=mysecretpassword +POSTGRES_DATABASE=teleforma +POSTGRES_USER=teleforma diff --git a/teleforma/views/core.py b/teleforma/views/core.py index acb22b07..6aacf4e3 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -71,6 +71,7 @@ from ..models.chat import ChatMessage from ..models.core import (Conference, Course, CourseType, Department, Document, DocumentType, Media, MediaTranscoded, Organization, Period, Professor, WebClassGroup, + StreamingServer, LiveStream, get_user_role) from ..webclass.models import Webclass, WebclassRecord from .pages import get_page_content @@ -729,7 +730,6 @@ class ConferenceView(CourseAccessMixin, DetailView): conference = Conference() conference.from_json_dict(conf_dict) conference.save() - if conference.streaming: for stream in conf_dict['streams']: host = getattr(