friendlier way of handling django_extensions

This commit is contained in:
Daniel Greenfeld 2013-07-06 12:21:02 +02:00
parent 0f3cfed915
commit 7db738d469

View file

@ -122,9 +122,16 @@ INSTALLED_APPS = (
'rest_framework',
'djadmin2',
'polls',
'django_extensions',
)
try:
import django_extensions
INSTALLED_APPS += (
'django_extensions',
)
except ImportError:
pass
# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error when DEBUG=False.