Commit 59f3bfbc authored by Rafal's avatar Rafal

Add authentication system

chcnage permision
add app.User
parent 3e45665f
...@@ -44,14 +44,15 @@ INSTALLED_APPS = ( ...@@ -44,14 +44,15 @@ INSTALLED_APPS = (
'app.Friendship', 'app.Friendship',
'app.Localization', 'app.Localization',
'app.Tag', 'app.Tag',
'app.User',
) )
REST_FRAMEWORK = { REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.AllowAny',), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),
'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.DjangoFilterBackend',), 'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.DjangoFilterBackend',),
'DEFAULT_AUTHENTICATION_CLASSES': ( 'DEFAULT_AUTHENTICATION_CLASSES': (
#'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.SessionAuthentication',
#'rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.TokenAuthentication',
), ),
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
'PAGE_SIZE': 10 'PAGE_SIZE': 10
......
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