Fix import of Django settings (#41)

Settings in Django are imported as such, see https://docs.djangoproject.com/en/1.10/topics/settings/#using-settings-in-python-code
pull/43/head
Gabriel Augendre 2016-11-26 20:26:23 +01:00 committed by Goulu
parent e6ad15af79
commit 6cc4abbaa8
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
STRICT = True
try:
from django.conf import django_settings
STRICT = getattr(django_settings, 'PDF_MINER_IS_STRICT', STRICT)
from django.conf import settings
STRICT = getattr(settings, 'PDF_MINER_IS_STRICT', STRICT)
except Exception:
# in case it's not a django project
pass