broker pool limit
[oweals/karmaworld.git] / karmaworld / settings / dev.py
index 646caccf77bbbede9555238ebc3fceb6aae64745..d563696216cc6eb6ccde436862a4c1ca171feda3 100644 (file)
@@ -3,7 +3,6 @@
 # Copyright (C) 2012  FinalsClub Foundation
 """Development settings and globals."""
 
-
 from os.path import join, normpath
 from S3 import CallingFormat
 
@@ -25,20 +24,6 @@ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
 ########## 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/'
@@ -78,6 +63,22 @@ INSTALLED_APPS += (
     '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',)
 
@@ -85,12 +86,18 @@ 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