This commit is contained in:
Mohamed Nouffer
2022-04-27 15:47:37 +05:30
parent 4bc68e947e
commit 11037587df
7 changed files with 202 additions and 77 deletions

View File

@ -48,6 +48,7 @@ INSTALLED_APPS = [
'django.contrib.gis',
'rest_framework',
'rest_framework_gis',
'knox',
'leaflet',
'leaflet_admin_list',
'rog.apps.RogConfig',
@ -168,5 +169,6 @@ LEAFLET_CONFIG = {
}
REST_FRAMEWORK = {
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend']
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'],
'DEFAULT_AUTHENTICATION_CLASSES': ('knox.auth.TokenAuthentication', ),
}