From c9e637f858d2c644a3db1ed872885215798b040b Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Tue, 21 Apr 2026 16:27:18 -0300 Subject: [PATCH] Expanded README And added 172.0.0.1 to allowed hosts --- .env.example | 2 +- README.md | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index c33e98e..8763404 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/README.md b/README.md index a1ecafc..19ffd3c 100644 --- a/README.md +++ b/README.md @@ -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)