diff --git a/server/apps/exam/views.py b/server/apps/exam/views.py index e0ceb1d..34cd5fa 100644 --- a/server/apps/exam/views.py +++ b/server/apps/exam/views.py @@ -275,6 +275,7 @@ class PaperViewSet(ModelViewSet): def upload_paper(self, request): doc_path = request.data.get('doc_path') excel_path = settings.BASE_DIR + "/media/default/question.xlsx" + doc_path = os.path.join(settings.BASE_DIR, doc_path) # excel_path = "C:\code\data\question.xlsx" timenow = timezone.now().strftime('%Y%m%d%H%M%S') question_excel_name = "question_excel_"+timenow