diff --git a/codeGrader/frontend/admin/app.py b/codeGrader/frontend/admin/app.py index d36dd4b..1e092fc 100644 --- a/codeGrader/frontend/admin/app.py +++ b/codeGrader/frontend/admin/app.py @@ -27,6 +27,7 @@ from typing import Union from codeGrader.frontend.config import config from codeGrader.frontend.admin import templates +from codeGrader.frontend.admin import static from codeGrader.frontend.admin.handlers import AdminUserLoginHandler, AdminSessionHandler, SessionAdmin, \ UserListHandler, UserHandler, HomeHandler, AdminListHandler, AdminHandler, ProfileListHandler, \ ProfileHandler, SubjectListHandler, SubjectHandler, TaskHandler, TaskListHandler, ExerciseHandler, \ @@ -40,7 +41,7 @@ from gevent.pywsgi import WSGIServer import datetime -app = Flask(config.adminAppName, template_folder=templates.__path__[0]) +app = Flask(config.adminAppName, template_folder=templates.__path__[0], static_folder=static.__path__[0]) # configuration of the login_manager and attaching it to the app app.secret_key = config.adminSecretKey diff --git a/codeGrader/frontend/user/app.py b/codeGrader/frontend/user/app.py index 3a9b8f9..c81a2b3 100644 --- a/codeGrader/frontend/user/app.py +++ b/codeGrader/frontend/user/app.py @@ -27,6 +27,7 @@ from flask_login import LoginManager, login_user, login_required, logout_user from codeGrader.frontend.config import config from codeGrader.frontend.user import templates +from codeGrader.frontend.user import static from codeGrader.frontend.user.handlers import UserSessionHandler, SessionUser, UserLoginHandler, HomeHandler, \ ExerciseListHandler, ExerciseHandler, TaskHandler, TaskListHandler, TaskAttachmentHandler, TaskInstructionHandler, \ AddSubmissionHandler, SettingsHandler, PasswordResetHandler, SubjectHandler, SubjectListHandler, SubmissionHandler, \ @@ -35,7 +36,7 @@ from typing import Union import datetime -app = Flask(config.userAppName, template_folder=templates.__path__[0]) +app = Flask(config.userAppName, template_folder=templates.__path__[0], static_folder=static.__path__[0]) # configuration of the login_manager and attaching it to the app app.secret_key = config.userSecretKey