Skip to content

Commit c6cab5c

Browse files
committed
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.
1 parent c3e0aae commit c6cab5c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ urlpatterns = [
295295
Now to see it all working together we need to create the migrations for our models with the following steps.
296296
```shell
297297
cd first_api
298-
./manage.py makemigrations music
299-
./manage.py migrate music
298+
./manage.py makemigrations
299+
./manage.py migrate
300300
cd ..
301301
task r
302302
```

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ colorama==0.4.6
2222
# via
2323
# mkdocs-material
2424
# taskipy
25-
django==5.0.6
25+
django==4
2626
# via
2727
# building-your-first-api-with-django-and-django-rest-framework (pyproject.toml)
2828
# djangorestframework
29-
djangorestframework==3.15.1
29+
djangorestframework==3.13
3030
# via building-your-first-api-with-django-and-django-rest-framework (pyproject.toml)
3131
ghp-import==2.1.0
3232
# via mkdocs

0 commit comments

Comments
 (0)