sort of working, more changes

This commit is contained in:
2025-06-09 05:45:58 -05:00
parent d442cad0bb
commit f0b1abd622
102 changed files with 1448 additions and 2264 deletions

View File

@ -1,5 +1,8 @@
import os
# Define basedir so its available inside the Config class
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ['SECRET_KEY']
UPLOAD_FOLDER = os.environ['UPLOAD_FOLDER']
@ -28,3 +31,11 @@ class Config:
NEO4J_URI = os.getenv('NEO4J_URI', 'bolt://neo4j:7687')
NEO4J_USER = os.getenv('NEO4J_USER', 'neo4j')
NEO4J_PASSWORD = os.getenv('NEO4J_PASSWORD', 'your_secure_password')
# Override or default upload folder
UPLOAD_FOLDER = os.path.join(basedir, "static", "uploads")
# Standard image size (for placeholders, etc.)
STANDARD_IMG_SIZE = tuple(
map(int, os.getenv('STANDARD_IMG_SIZE', '300x200').split('x'))
)