Skip to content

Commit

Permalink
Remove REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
adilmohak committed Oct 12, 2024
1 parent e3b9a5e commit c31a371
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
12 changes: 0 additions & 12 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
THIRD_PARTY_APPS = [
"crispy_forms",
"crispy_bootstrap5",
"rest_framework",
"django_filters",
]

Expand Down Expand Up @@ -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="")
Expand Down
4 changes: 0 additions & 4 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c31a371

Please sign in to comment.