# Copyright (C) 2012 FinalsClub Foundation
"""Development settings and globals."""
-
from os.path import join, normpath
from S3 import CallingFormat
########## END EMAIL CONFIGURATION
-########## DATABASE CONFIGURATION
-# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'NAME': 'karmanotes',
- 'USER': 'djkarma',
- 'PASSWORD': 'karma',
- 'HOST': 'localhost',
- 'PORT': '', # Set to empty string for default. Not used with sqlite3.
- }
-}
-########## END DATABASE CONFIGURATION
-
########## STATIC CONFIG
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
STATIC_URL = '/static/'
'django_nose',
)
+DEBUG_TOOLBAR_PATCH_SETTINGS = False
+
+DEBUG_TOOLBAR_PANELS = (
+ 'debug_toolbar.panels.versions.VersionsPanel',
+ 'debug_toolbar.panels.timer.TimerPanel',
+ 'debug_toolbar.panels.settings.SettingsPanel',
+ 'debug_toolbar.panels.headers.HeadersPanel',
+ 'debug_toolbar.panels.request.RequestPanel',
+ 'debug_toolbar.panels.sql.SQLPanel',
+ 'debug_toolbar.panels.staticfiles.StaticFilesPanel',
+ 'debug_toolbar.panels.templates.TemplatesPanel',
+ 'debug_toolbar.panels.cache.CachePanel',
+ 'debug_toolbar.panels.signals.SignalsPanel',
+ 'debug_toolbar.panels.logging.LoggingPanel',
+)
+
# See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
INTERNAL_IPS = ('127.0.0.1',)
MIDDLEWARE_CLASSES += (
'debug_toolbar.middleware.DebugToolbarMiddleware',
)
+########## END TOOLBAR CONFIGURATION
+########## PROFILING CONFIGURATION
+MIDDLEWARE_CLASSES += (
+ 'karmaworld.apps.courses.middleware.ProfileMiddleware',
+)
+########## END PROFILING CONFIGURATION
+
+########## COMPRESSION CONFIGURATION
+COMPRESS_ENABLED = False
+########## END COMPRESSION CONFIGURATION
-DEBUG_TOOLBAR_CONFIG = {
- 'INTERCEPT_REDIRECTS': False # Don't interrput our redirects!
-}
-########## END TOOLBAR CONFIGURATION
########## TESTING CONFIGURATION
# Use django-nose to test our app, see https://github.com/jbalogh/django-nose