fix: cleanup

This commit is contained in:
2026-03-20 10:30:52 +01:00
parent 78f03e139f
commit 5f52959a20
4 changed files with 4 additions and 30 deletions
-23
View File
@@ -1,5 +1,3 @@
import datetime
from django.utils.text import gettext_lazy as _
from config.settings.environ import * # noqa
@@ -31,7 +29,6 @@ THIRD_PARTY_APPS = [
'django_extensions',
'django_filters',
'watchman',
'drf_spectacular',
'gonk',
'rest_framework_simplejwt',
]
@@ -134,26 +131,6 @@ STORAGES = {
'staticfiles': {'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage'},
}
# Django Rest Framework Configuration
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework_simplejwt.authentication.JWTAuthentication',
'rest_framework.authentication.SessionAuthentication',
'rest_framework.authentication.BasicAuthentication',
),
'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',),
'DEFAULT_FILTER_BACKENDS': [
'rest_framework.filters.OrderingFilter',
'django_filters.rest_framework.DjangoFilterBackend',
'rest_framework.filters.SearchFilter',
],
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
'PAGE_SIZE': PAGE_SIZE,
}
LOCALE_PATHS = [BASE_DIR / 'locale']
if S3_ENABLED: