Initial commit

This commit is contained in:
jar3b
2018-07-06 18:47:11 +03:00
commit 94fc866891
8 changed files with 60 additions and 0 deletions

13
drf_uuid_auth/settings.py Normal file
View File

@@ -0,0 +1,13 @@
import datetime
from django.conf import settings
from rest_framework.settings import APISettings
USER_SETTINGS = getattr(settings, 'UUID_AUTH', None)
DEFAULTS = {
'AUTH_HEADER': 'HTTP_X_UUID_AUTH'
}
api_settings = APISettings(USER_SETTINGS, DEFAULTS)