Enable SessionAuthentication
@@ -139,10 +139,12 @@ STATICFILES_DIRS = [
# Django restframework
REST_FRAMEWORK = {
- #"DEFAULT_AUTHENTICATION_CLASSES": (
- # "rest_framework.authentication.TokenAuthentication",
- #),
- "DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.AllowAny",),
+ "DEFAULT_AUTHENTICATION_CLASSES": (
+ "rest_framework.authentication.SessionAuthentication",
+ ),
+ "DEFAULT_PERMISSION_CLASSES": (
+ "rest_framework.permissions.AllowAny",
+ ),
"DEFAULT_RENDERER_CLASSES": (
"rest_framework.renderers.JSONRenderer",
"rest_framework.renderers.BrowsableAPIRenderer",
