Skip to content

Commit

Permalink
Fix issue with 'python-django.el'.
Browse files Browse the repository at this point in the history
See fgallina/python-django.el#25 for
details.


git-svn-id: svn://localhost/emacslib/emacslib/trunk@733 a9598837-e506-0410-a967-fbf0066ee963
  • Loading branch information
patxoca committed Sep 1, 2016
1 parent 7bc0fc9 commit 2364f88
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions site-lisp/python-django.el
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,13 @@ non-nil the cached value is invalidated."
"from os.path import dirname, abspath\n"
"stdout = sys.stdout; stderr = sys.stderr\n"
"sys.stdout = sys.stderr = open(os.devnull, 'w')\n"
"if os.environ.get('DJANGO_CONFIGURATION') is not None:\n"
" try:\n"
" import configurations\n"
" configurations.setup()\n"
" except ImportError:\n"
" # fail silently\n"
" pass\n"
"from django.conf import settings\n"
"# Try to import json really hard\n"
"try:\n"
Expand Down

0 comments on commit 2364f88

Please sign in to comment.