21 lines
636 B
Python
21 lines
636 B
Python
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)
|