Adding rest framework to dependencies
This commit is contained in:
parent
a103ac22f5
commit
0739545a41
3 changed files with 7 additions and 3 deletions
|
@ -4,4 +4,6 @@
|
||||||
|
|
||||||
### Install requirements
|
### 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`.
|
|
@ -32,6 +32,7 @@ ALLOWED_HOSTS = []
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
'api_v1.apps.ApiV1Config',
|
'api_v1.apps.ApiV1Config',
|
||||||
|
'rest_framework',
|
||||||
'django.contrib.admin',
|
'django.contrib.admin',
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
Django~=5.0.2
|
Django~=4.2
|
||||||
psycopg2-binary~=2.9.9
|
psycopg2-binary~=2.9.9
|
||||||
|
djangorestframework~=3.14.0
|
Loading…
Reference in a new issue