/usr/lib/python2.7/dist-packages/djoser/settings.py is in python-djoser 0.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | from django.core.exceptions import ImproperlyConfigured
def get(key):
from django.conf import settings
defaults = {
'SEND_ACTIVATION_EMAIL': False,
'SET_PASSWORD_RETYPE': False,
'SET_USERNAME_RETYPE': False,
'PASSWORD_RESET_CONFIRM_RETYPE': False,
'ROOT_VIEW_URLS_MAPPING': {},
}
defaults.update(getattr(settings, 'DJOSER', {}))
try:
return defaults[key]
except KeyError:
raise ImproperlyConfigured('Missing settings: DJOSER[\'{}\']'.format(key))
|