Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jedie committed Jun 28, 2011
1 parent 0359e6d commit 5d5d3eb
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions testproject/settings.py
Expand Up @@ -14,13 +14,7 @@
django documentation for a full list of all items:
http://www.djangoproject.com/documentation/settings/
Last commit info:
~~~~~~~~~~~~~~~~~
$LastChangedDate:$
$Rev:$
$Author: JensDiemer $
:copyleft: 2010 by the django-sync-server team, see AUTHORS for more details.
:copyleft: 2010-2011 by the django-sync-server team, see AUTHORS for more details.
:license: GNU GPL v3 or above, see LICENSE for more details.
"""

Expand Down Expand Up @@ -102,5 +96,9 @@

try:
from local_settings import *
except ImportError:
pass
except ImportError, err:
msg = (
"No local_settings.py imported from '%s' !"
" (Original error was: %s)\n"
) % (os.getcwd(), err)
sys.stderr.write(msg)

0 comments on commit 5d5d3eb

Please sign in to comment.