Files
django-core-base/README.md
minguezsanzjuanjose 9dd97b34f2
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
fix
2026-04-14 01:00:37 +02:00

73 lines
1.4 KiB
Markdown

# django-core-base
// V-Encore Lab: Sistema Automatizado v1.0.4
## 🚀 Inicio Rápido (Desarrollo Local)
### 1. Clonar y Configurar
```bash
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
```bash
pip install -r deployments/requirements.txt
```
### 3. Migraciones de Base de Datos
```bash
# 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
```bash
python manage.py runserver
```
Abrir http://localhost:8000
## 🐳 Docker (Producción/Desarrollo)
```bash
docker-compose up --build
```
Acceder a:
- App: http://localhost:8000
- Admin: http://localhost:8000/admin/
- DB: localhost:5432 (Postgres)
## 📋 Comandos Django Comunes
```bash
# 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.