Commit 6e68ccd8 authored by Bruno Martin's avatar Bruno Martin
Browse files

add session authentication do drf; fix User app import

parent a55a731a
Pipeline #7303 failed with stage
......@@ -73,7 +73,7 @@ THIRD_PARTY_APPS = [
# Apps specific for this project go here.
LOCAL_APPS = [
# custom users app
'base_django_project.users.apps.UsersConfig',
'users.apps.UsersConfig',
'courses.apps.CoursesConfig',
'courses_learning_objects.apps.CoursesLearningObjectsConfig',
'courses_certification.apps.CoursesCertificationConfig',
......@@ -287,6 +287,7 @@ AUTHENTICATION_BACKENDS = [
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
),
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticatedOrReadOnly',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment