Skip to content

Commit

Permalink
Merge pull request #40 from ooemperor/dev
Browse files Browse the repository at this point in the history
Fix Static File not avaible issue in new run scripts
  • Loading branch information
ooemperor authored Feb 18, 2024
2 parents cd438ab + d197ed4 commit 44bafc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion codeGrader/frontend/admin/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion codeGrader/frontend/user/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand All @@ -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
Expand Down

0 comments on commit 44bafc5

Please sign in to comment.