ENH: Set up Djoser (#23)

Fixes #20
This commit is contained in:
Matthew Ryan Dillon 2017-07-11 23:27:00 -08:00 committed by GitHub
parent a2f823dbe5
commit 3b3069b577
2 changed files with 7 additions and 1 deletions

View file

@ -37,6 +37,7 @@ INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
MIDDLEWARE = (
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
@ -159,3 +160,8 @@ REST_FRAMEWORK = {
}
SITE_ID = 1
DJOSER = {
'SITE_NAME': 'CCDB (test)',
'DOMAIN': 'localhost:4200',
}

View file

@ -18,7 +18,7 @@ requests==2.11.0
# REST
djangorestframework==3.4.4
django-cors-headers==1.1.0
django-cors-middleware==1.3.1
django-filter==0.14.0
djoser==0.5.0
djangorestframework-jsonapi==2.1.0