Browse Source

adding lib for api keys

mex3 1 week ago
parent
commit
fa06e54068
2 changed files with 2 additions and 0 deletions
  1. 1 0
      core/settings.py
  2. 1 0
      requirements.txt

+ 1 - 0
core/settings.py

@@ -43,6 +43,7 @@ INSTALLED_APPS = [
     "django.contrib.flatpages",
     "django_extensions",
     'rest_framework',
+    "rest_framework_api_key",
     'rest_framework.authtoken',
     'djoser',
     'drf_yasg',

+ 1 - 0
requirements.txt

@@ -22,6 +22,7 @@ django-spaghetti-and-meatballs==0.4.2
 django-tables2==2.4.1
 django-templated-mail==1.1.1
 djangorestframework==3.14.0
+djangorestframework-api-key==2.*
 djangorestframework-simplejwt==4.8.0
 djoser==2.1.0
 docutils==0.19