SIGEP/SIGEP/settings.py. Most settings work out of the box for local development, but several must be changed before you deploy to production.
Security settings
SECRET_KEY
TheSECRET_KEY is used to sign cookies, sessions, and other cryptographic operations. Replace the default value with a strong random string before deploying:
settings.py
DEBUG
SetDEBUG to False in production. When DEBUG = True, Django exposes detailed error pages and serves static and media files directly — both inappropriate for a live server:
settings.py
ALLOWED_HOSTS
Add your domain name or server IP address toALLOWED_HOSTS. Django refuses to serve requests to hosts not listed here when DEBUG = False:
settings.py
Database
By default, SIGEP uses SQLite:settings.py
settings.py
Custom user model
SIGEP uses a custom user model:
AUTH_USER_MODEL = "principal.Usuario". Do not change this setting after you have run the initial migrations — doing so will break the database schema and all authentication-related tables.settings.py
File storage
Static files
Static assets (CSS, JavaScript, images) are collected intostaticfiles/ when you run collectstatic:
settings.py
static/. In production, run python manage.py collectstatic and configure your web server to serve the staticfiles/ directory.
Media files
User-uploaded files (event images, documents) are stored undermedia/:
settings.py
/media/ URL path.
settings.py
System-wide configuration
Administrators can also manage key/value configuration at runtime through the built-in settings interface at/administrador/configuracion/. Changes made there do not require editing settings.py or restarting the server.