sort of working, more changes
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
import os
|
||||
|
||||
# Define basedir so it’s 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'))
|
||||
)
|
||||
|
Reference in New Issue
Block a user