From aa183d67fe7c132ae79aefee71986754f115fccb Mon Sep 17 00:00:00 2001 From: mohsentaba Date: Sun, 1 Feb 2026 15:39:26 +0330 Subject: [PATCH] fixed model imports for room token --- apps/course/views/live_session.py | 4 ++-- entrypoint.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/course/views/live_session.py b/apps/course/views/live_session.py index 727640e..ee9b51d 100644 --- a/apps/course/views/live_session.py +++ b/apps/course/views/live_session.py @@ -11,7 +11,7 @@ from rest_framework.authentication import TokenAuthentication from rest_framework.response import Response from drf_yasg.utils import swagger_auto_schema from drf_yasg import openapi -from datetime import time +import time import jwt from apps.course.models import Course, CourseLiveSession, Participant, LiveSessionRecording from apps.course.serializers import LiveSessionRoomCreateSerializer, LiveSessionTokenSerializer, LiveSessionRecordedFileSerializer, LiveSessionRecordingSerializer @@ -108,7 +108,7 @@ class CourseLiveSessionRoomCreateAPIView(GenericAPIView): 'access_token': pnm_token # <--- REQUIRED for frontend }, status=201) - + # def post(self, request, slug, *args, **kwargs): # logger.info(f"[LiveSession Create] Request from user_id={request.user.id} for course={slug}") diff --git a/entrypoint.sh b/entrypoint.sh index d7d077d..ca09a25 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,9 +5,9 @@ python manage.py migrate # python manage.py seed_images python manage.py collectstatic --noinput -pip uninstall jwt -pip uninstall PyJWT -pip install PyJWT +# pip uninstall jwt +# pip uninstall PyJWT +# pip install PyJWT # Seed Russian data (only runs once, skips if data exists) # python manage.py seed_corrections # python manage.py seed_russian_data