diff --git a/sigi/settings/__init__.py b/sigi/settings/__init__.py index ce3e479..2a722e5 100644 --- a/sigi/settings/__init__.py +++ b/sigi/settings/__init__.py @@ -1,7 +1,13 @@ try: - from .prod import * + from prod import * except ImportError: - from warnings import warn - msg = "You don't have a production settings file, using development settings." - warn(msg, category=ImportWarning) - from .dev import * + from django.core.exceptions import ImproperlyConfigured + msg = """ + + ###################################################################### + Arquivo prod.py (django settings) nao encontrado. + Se vc esta num ambiente de desenvolvimento pode cria-lo com + ln -s dev.py prod.py + ###################################################################### +""" + raise ImproperlyConfigured(msg)