diff -r c641b33f910f -r 032280909e65 server/settings.py --- a/server/settings.py Tue Mar 31 15:27:26 2015 +0200 +++ b/server/settings.py Thu Apr 02 11:57:39 2015 +0200 @@ -32,10 +32,12 @@ 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', + 'rest_framework.authtoken', 'corsheaders', 'requests', 'taggit', 'ammico', + 'authentication' ) MIDDLEWARE_CLASSES = ( @@ -59,7 +61,7 @@ # Use Django's standard `django.contrib.auth` permissions, # or allow read-only access for unauthenticated users. 'DEFAULT_PERMISSION_CLASSES': [ - 'rest_framework.authentication.SessionAuthentication' + 'rest_framework.authentication.TokenAuthentication' ] } @@ -70,6 +72,9 @@ } } +AUTH_USER_MODEL = 'authentication.AmmicoUser' +AUTH_PROFILE_MODULE = 'authentication.Profile' + # Internationalization # https://docs.djangoproject.com/en/1.7/topics/i18n/