-
-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Describe the bug
I try and access http:///river-admin
To Reproduce
Steps to reproduce the behavior:
- With
Djangoversion2.2 - With
Pythonversion3.6.9
Expected behavior
I expected the River Admin to load.
*POSTGRESQL 10
Additional context
If permission classes are added in settings, a 403 error is recieved.
I have the following added in my settings.py
REST_FRAMEWORK = {
# Use Django's standard django.contrib.auth permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated'
],
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication', # <-- And here
'rest_framework.authentication.SessionAuthentication',
#'rest_framework.authentication.BasicAuthentication'
'rest_framework.authentication.BasicAuthentication'
],
'EXCEPTION_HANDLER': 'river_admin.views.exception_handler'
}
When the DEFAULT_PERMISSION_CLASSES are removed, the page loads, but no authentication happens as shown in the screenshot.
