From c31a3718d497a7beb9a2a9d88a924610cff7fa66 Mon Sep 17 00:00:00 2001 From: Adil Mohak Date: Sun, 13 Oct 2024 01:14:07 +0300 Subject: [PATCH] Remove REST API --- config/settings.py | 12 ------------ requirements/base.txt | 4 ---- 2 files changed, 16 deletions(-) diff --git a/config/settings.py b/config/settings.py index 7f03b05..43f70b1 100644 --- a/config/settings.py +++ b/config/settings.py @@ -51,7 +51,6 @@ THIRD_PARTY_APPS = [ "crispy_forms", "crispy_bootstrap5", - "rest_framework", "django_filters", ] @@ -208,17 +207,6 @@ def gettext(s): LOGIN_REDIRECT_URL = "/" LOGOUT_REDIRECT_URL = "/" -# DRF setup -REST_FRAMEWORK = { - "DEFAULT_PERMISSION_CLASSES": [ - "rest_framework.permissions.IsAuthenticated", - ], - "DEFAULT_AUTHENTICATION_CLASSES": [ - "rest_framework.authentication.SessionAuthentication", - "rest_framework.authentication.BasicAuthentication", - ], -} - # Strip payment config STRIPE_SECRET_KEY = config("STRIPE_SECRET_KEY", default="") STRIPE_PUBLISHABLE_KEY = config("STRIPE_PUBLISHABLE_KEY", default="") diff --git a/requirements/base.txt b/requirements/base.txt index 95681f0..7be538b 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -11,10 +11,6 @@ crispy-bootstrap5==0.7 # https://github.com/django-crispy-forms/crispy-bootstra django-filter==23.5 # https://github.com/carltongibson/django-filter django-modeltranslation==0.18.11 # https://github.com/Buren/django-modeltranslation -# Django REST Framework -djangorestframework==3.14.0 # https://github.com/encode/django-rest-framework -django-cors-headers==3.13.0 # https://github.com/adamchainz/django-cors-headers - # PDF generator reportlab==4.0.4 xhtml2pdf==0.2.15