From 0739545a41a4d5c6973e59106c1a1a75ad440e27 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Wed, 28 Feb 2024 20:22:15 +0100 Subject: [PATCH] Adding rest framework to dependencies --- README.md | 4 +++- mixr_api/settings.py | 1 + requirements.txt | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ff0347f..d472aaf 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,6 @@ ### Install requirements -If there are any issues with `psycopg2` and that it cannot be imported, you might be missing `libpq-dev`. If you are using a virtual environment, install it with `sudo apt-get install libpq-dev` +If there are any issues with `psycopg2` and that it cannot be imported, you might be missing `libpq-dev`. If you are using a virtual environment, install it with `sudo apt-get install libpq-dev`. + +If there are any issues with `djangorestframework` or rather the import of `rest_framework`, try installing it again with the active environment using `python -m pip install djangorestframework`. \ No newline at end of file diff --git a/mixr_api/settings.py b/mixr_api/settings.py index 3edf9ac..86b866b 100644 --- a/mixr_api/settings.py +++ b/mixr_api/settings.py @@ -32,6 +32,7 @@ ALLOWED_HOSTS = [] INSTALLED_APPS = [ 'api_v1.apps.ApiV1Config', + 'rest_framework', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', diff --git a/requirements.txt b/requirements.txt index 7a8ce49..a2157e3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ -Django~=5.0.2 -psycopg2-binary~=2.9.9 \ No newline at end of file +Django~=4.2 +psycopg2-binary~=2.9.9 +djangorestframework~=3.14.0 \ No newline at end of file