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