mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-26 19:10:26 +00:00
friendlier way of handling django_extensions
This commit is contained in:
parent
0f3cfed915
commit
7db738d469
1 changed files with 8 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue