create project and create model and dashboard
This commit is contained in:
BIN
app/utils/__pycache__/file_utils.cpython-313.pyc
Normal file
BIN
app/utils/__pycache__/file_utils.cpython-313.pyc
Normal file
Binary file not shown.
6
app/utils/file_utils.py
Normal file
6
app/utils/file_utils.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import os
|
||||
from app.config import Config
|
||||
|
||||
def ensure_upload_folder():
|
||||
if not os.path.exists(Config.UPLOAD_FOLDER):
|
||||
os.makedirs(Config.UPLOAD_FOLDER)
|
||||
2
app/utils/helpers.py
Normal file
2
app/utils/helpers.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def is_logged_in(session):
|
||||
return session.get("user_id") is not None
|
||||
Reference in New Issue
Block a user