Created
April 30, 2013 09:05
-
-
Save ionatan-israel/5487536 to your computer and use it in GitHub Desktop.
Plantilla settings/loca.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Parametros para entorno de desarrollo | |
# Cada cual debe tener su propio settings/local | |
""" | |
# Se cargan los parametros basicos del proyecto | |
from settings.base import * | |
# Cada uno puede tener su conexion personalizada al tipo de bbdd que quiera | |
# Pero es recomendable dejar de usar sqlite3. Para Mac hay una app muy chula - http://postgresapp.com | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. | |
'NAME': 'gecodb', # Or path to database file if using sqlite3. | |
'USER': '', | |
'PASSWORD': '', | |
'HOST': 'localhost', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP. | |
'PORT': '', # Set to empty string for default. | |
} | |
} | |
# django-debug-toolbar | |
MIDDLEWARE_CLASSES += ['debug_toolbar.middleware.DebugToolbarMiddleware'] | |
INTERNAL_IPS = ('127.0.0.1',) | |
INSTALLED_APPS += ['debug_toolbar'] | |
DEBUG_TOOLBAR_PANELS = ( | |
'debug_toolbar.panels.version.VersionDebugPanel', | |
'debug_toolbar.panels.timer.TimerDebugPanel', | |
'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel', | |
'debug_toolbar.panels.headers.HeaderDebugPanel', | |
'debug_toolbar.panels.request_vars.RequestVarsDebugPanel', | |
'debug_toolbar.panels.template.TemplateDebugPanel', | |
'debug_toolbar.panels.sql.SQLDebugPanel', | |
'debug_toolbar.panels.signals.SignalDebugPanel', | |
'debug_toolbar.panels.logger.LoggingPanel', | |
) | |
DEBUG_TOOLBAR_CONFIG = { | |
'INTERCEPT_REDIRECTS': False, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment