Merge branch 'API-rest'
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m57s
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m57s
This commit is contained in:
@@ -56,6 +56,7 @@ INSTALLED_APPS = [
|
||||
'django.contrib.admin',
|
||||
'carnet_rouge.apps.CarnetRougeConfig',
|
||||
'django_summernote',
|
||||
'authapp',
|
||||
]
|
||||
|
||||
INSTALLED_APPS += ( 'apilog.apps.ApilogConfig',)
|
||||
@@ -70,6 +71,14 @@ INSTALLED_APPS += ('rest_framework', 'rest_framework.authtoken',)
|
||||
),
|
||||
# Autres paramètres de configuration...
|
||||
}'''
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': [
|
||||
'rest_framework.authentication.TokenAuthentication',
|
||||
],
|
||||
'DEFAULT_PERMISSION_CLASSES': [
|
||||
'rest_framework.permissions.IsAuthenticated',
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
LANGUAGE_CODE = 'fr-CH'
|
||||
|
@@ -34,6 +34,7 @@ urlpatterns = [
|
||||
path('summernote/', include('django_summernote.urls')),
|
||||
path('editor/', include('django_summernote.urls')),
|
||||
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
path('api/auth/', include('authapp.urls')),
|
||||
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user