mirror of https://github.com/interlegis/sigi.git
Marcio Mazza
10 years ago
1 changed files with 11 additions and 5 deletions
@ -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) |
|||
|
Loading…
Reference in new issue