change rest permissions to match django
All checks were successful
DEV-234/pipeline/head This commit looks good
All checks were successful
DEV-234/pipeline/head This commit looks good
This commit is contained in:
parent
b8551834c1
commit
0afc28c616
@ -115,11 +115,12 @@ REST_FRAMEWORK = {
|
|||||||
# Use Django's standard `django.contrib.auth` permissions,
|
# Use Django's standard `django.contrib.auth` permissions,
|
||||||
# or allow read-only access for unauthenticated users.
|
# or allow read-only access for unauthenticated users.
|
||||||
'DEFAULT_PERMISSION_CLASSES': [
|
'DEFAULT_PERMISSION_CLASSES': [
|
||||||
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly',
|
'rest_framework.permissions.DjangoModelPermissions',
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/4.1/topics/i18n/
|
# https://docs.djangoproject.com/en/4.1/topics/i18n/
|
||||||
|
|
||||||
|
|||||||
@ -4,6 +4,6 @@ from django.urls import path, include
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
path('api/accounts/', include('accounts.urls')),
|
path('accounts/', include('accounts.urls')),
|
||||||
path('', include('main.urls')),
|
path('', include('main.urls')),
|
||||||
]
|
]
|
||||||
Loading…
x
Reference in New Issue
Block a user