7a9a1686fa6315c072b8a5d5d7d29451d5db2fac
Some checks failed
DEPLOY_MULTI_BRACH/pipeline/head There was a failure building this commit
Reviewed-on: #21
django-core-base
// V-Encore Lab: Sistema Automatizado v1.0.4
🚀 Inicio Rápido (Desarrollo Local)
1. Clonar y Configurar
git clone https://git.v-encore-lab.com/Proyecto-SaaS/django-core-base.git
cd django-core-base
cp .env.example .env
2. Instalar Dependencias
pip install -r deployments/requirements.txt
3. Migraciones de Base de Datos
# Crear y aplicar migraciones para todos los modelos
python manage.py makemigrations
python manage.py migrate
# Opcional: Crear superusuario
python manage.py createsuperuser
4. Correr el Servidor
python manage.py runserver
Abrir http://localhost:8000
🐳 Docker (Producción/Desarrollo)
docker-compose up --build
Acceder a:
- App: http://localhost:8000
- Admin: http://localhost:8000/admin/
- DB: localhost:5432 (Postgres)
📋 Comandos Django Comunes
# Verificar configuración
python manage.py check
# Recopilar static files
python manage.py collectstatic --noinput
# Test
python manage.py test
🔧 Estructura del Proyecto
├── apps/ # Aplicaciones Django
│ ├── backend_admin/
│ ├── common/
│ └── promociones/
├── core/ # Configuración principal
├── deployments/ # Docker, requirements prod
└── manage.py
.env Variables
Ver .env.example para configuración.
Description
Languages
Python
89.4%
TypeScript
5.9%
Shell
2.3%
Dockerfile
1.8%
HTML
0.6%