Compare commits

...

2 commits

Author SHA1 Message Date
Rodrigo
c6443d4700 Merge remote-tracking branch 'origin/main' 2026-04-21 16:29:26 -03:00
Rodrigo
c9e637f858 Expanded README
And added 172.0.0.1 to allowed hosts
2026-04-21 16:27:18 -03:00
2 changed files with 16 additions and 2 deletions

View file

@ -2,7 +2,7 @@ DJANGO_SECRET_KEY="django-secret-key"
DEBUG=True
PUBLIC_PORT=8000
DJANGO_LOGLEVEL=info
DJANGO_ALLOWED_HOSTS=localhost
DJANGO_ALLOWED_HOSTS=localhost,172.0.0.1
DATABASE_ENGINE=postgresql_psycopg2
DATABASE_NAME=dockerdjango
DATABASE_USERNAME=dbuser

View file

@ -61,6 +61,20 @@ Pegar la clave generada en el campo `DJANGO_SECRET_KEY`
docker compose up -d --build
```
## 7. Listo!
## 7. Migrar base de datos
Esto crea la base de datos
```console
python manage.py migrate
```
## 8. Crear usuario administrador
```console
python manage.py createsuperuser --username admin --email admin@example.com
```
## 9. Listo!
Abrir en el navegador en [localhost:8000](http://localhost:8000)