From ea8f0168e8b0ef159554fa178f408970ee43d877 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 12 Jun 2009 01:00:04 +0200 Subject: [PATCH] Removed ipython and added django-extensions, django-debug-toolbar --- buildout.cfg | 11 ++++++++++- example/settings.py | 6 ++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/buildout.cfg b/buildout.cfg index fc16d55..4b6ab06 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -2,15 +2,22 @@ parts = python django + django-debug-toolbar develop = . eggs = django-authority - ipython + django-extensions + +[django-debug-toolbar] +recipe=zerokspot.recipe.git +repository=git://github.com/robhudson/django-debug-toolbar.git [python] recipe = zc.recipe.egg interpreter = python eggs = ${buildout:eggs} +extra-paths = + ${django-debug-toolbar:location} [django] recipe = djangorecipe @@ -18,3 +25,5 @@ version = trunk projectegg = example settings = development eggs = ${buildout:eggs} +extra-paths = + ${django-debug-toolbar:location} \ No newline at end of file diff --git a/example/settings.py b/example/settings.py index 801e6d8..5710948 100644 --- a/example/settings.py +++ b/example/settings.py @@ -40,9 +40,13 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', ) +INTERNAL_IPS = ('127.0.0.1',) + + TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.auth', 'django.core.context_processors.debug', @@ -64,6 +68,8 @@ INSTALLED_APPS = ( 'django.contrib.admin', 'authority', 'example.exampleapp', + 'debug_toolbar', + 'django_extensions', ) TEMPLATE_LOADERS = (