Update test config.

This commit is contained in:
Antoine Nguyen
2015-11-27 14:53:53 +01:00
parent 68b5fc1a3e
commit c4ec4f447c
+12 -1
View File
@@ -45,7 +45,7 @@ INSTALLED_APPS = (
'django.contrib.sites',
'django.contrib.staticfiles',
'reversion',
'rest_framework.authtoken'
)
# A dedicated place to register Modoboa applications
@@ -135,6 +135,17 @@ STATICFILES_DIRS = (
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# Rest framework settings
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
),
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
)
}
# Modoboa settings
#MODOBOA_CUSTOM_LOGO = os.path.join(MEDIA_URL, "custom_logo.png")