From c6cab5c2c45132f2b399c8705136127b17f9d824 Mon Sep 17 00:00:00 2001 From: FeliPython Date: Wed, 15 May 2024 14:43:26 -0400 Subject: [PATCH] Downgrade Django and DRF, simplify migration commands Django and Django REST Framework versions have been downgraded from 5.0.6 to 4 and 3.15.1 to 3.13, respectively, for compatibility issues. Also, the migration commands in the docs have been simplified, removing the specific 'music' module, to make the instructions more general and applicable for different modules. --- docs/index.md | 4 ++-- requirements.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index c8be9e5..2d013d2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -295,8 +295,8 @@ urlpatterns = [ Now to see it all working together we need to create the migrations for our models with the following steps. ```shell cd first_api -./manage.py makemigrations music -./manage.py migrate music +./manage.py makemigrations +./manage.py migrate cd .. task r ``` diff --git a/requirements.txt b/requirements.txt index 4dad88b..fd980d0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,11 +22,11 @@ colorama==0.4.6 # via # mkdocs-material # taskipy -django==5.0.6 +django==4 # via # building-your-first-api-with-django-and-django-rest-framework (pyproject.toml) # djangorestframework -djangorestframework==3.15.1 +djangorestframework==3.13 # via building-your-first-api-with-django-and-django-rest-framework (pyproject.toml) ghp-import==2.1.0 # via mkdocs