Modularización de GKACHELE SaaS
This commit is contained in:
20
demo/config.py
Normal file
20
demo/config.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import os
|
||||
|
||||
# Configuración Base - GKACHELE™ SaaS
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
DATABASE_DIR = os.path.join(BASE_DIR, 'database')
|
||||
SITES_DIR = os.path.join(BASE_DIR, 'sites')
|
||||
THEMES_DIR = os.path.join(BASE_DIR, 'themes')
|
||||
STATIC_DIR = os.path.join(BASE_DIR, 'static')
|
||||
UPLOADS_DIR = os.path.join(BASE_DIR, 'uploads')
|
||||
|
||||
# DB Principal
|
||||
MAIN_DB = os.path.join(DATABASE_DIR, 'main.db')
|
||||
|
||||
# Flask Config
|
||||
SECRET_KEY = 'demo-secret-key-2025'
|
||||
PORT = int(os.environ.get('PORT', 5001))
|
||||
|
||||
# Asegurar directorios
|
||||
for d in [DATABASE_DIR, SITES_DIR, THEMES_DIR, UPLOADS_DIR]:
|
||||
os.makedirs(d, exist_ok=True)
|
||||
Reference in New Issue
Block a user