Browse Source

fixed model imports for room token

master
Mohsen Taba 4 months ago
parent
commit
aa183d67fe
  1. 4
      apps/course/views/live_session.py
  2. 6
      entrypoint.sh

4
apps/course/views/live_session.py

@ -11,7 +11,7 @@ from rest_framework.authentication import TokenAuthentication
from rest_framework.response import Response from rest_framework.response import Response
from drf_yasg.utils import swagger_auto_schema from drf_yasg.utils import swagger_auto_schema
from drf_yasg import openapi from drf_yasg import openapi
from datetime import time
import time
import jwt import jwt
from apps.course.models import Course, CourseLiveSession, Participant, LiveSessionRecording from apps.course.models import Course, CourseLiveSession, Participant, LiveSessionRecording
from apps.course.serializers import LiveSessionRoomCreateSerializer, LiveSessionTokenSerializer, LiveSessionRecordedFileSerializer, LiveSessionRecordingSerializer from apps.course.serializers import LiveSessionRoomCreateSerializer, LiveSessionTokenSerializer, LiveSessionRecordedFileSerializer, LiveSessionRecordingSerializer
@ -108,7 +108,7 @@ class CourseLiveSessionRoomCreateAPIView(GenericAPIView):
'access_token': pnm_token # <--- REQUIRED for frontend 'access_token': pnm_token # <--- REQUIRED for frontend
}, status=201) }, status=201)
# def post(self, request, slug, *args, **kwargs): # def post(self, request, slug, *args, **kwargs):
# logger.info(f"[LiveSession Create] Request from user_id={request.user.id} for course={slug}") # logger.info(f"[LiveSession Create] Request from user_id={request.user.id} for course={slug}")

6
entrypoint.sh

@ -5,9 +5,9 @@ python manage.py migrate
# python manage.py seed_images # python manage.py seed_images
python manage.py collectstatic --noinput 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) # Seed Russian data (only runs once, skips if data exists)
# python manage.py seed_corrections # python manage.py seed_corrections
# python manage.py seed_russian_data # python manage.py seed_russian_data

Loading…
Cancel
Save