Skip to content

Commit

Permalink
Add django-debug-toolbar, and remove warning of ADMIN_MEDIA_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 9, 2012
1 parent 5c35b81 commit 828513d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
#ADMIN_MEDIA_PREFIX = '/media/admin/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = ')x_^bgbj$v_r-5=rn&01pm-5*%szlnc+8^3kh4$^$#z-gn5yo#'
Expand All @@ -90,6 +91,7 @@
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
)

Expand All @@ -102,6 +104,7 @@
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
os.path.join(PROJECT_ROOT, 'templates'),
'/usr/local/lib/python2.6/dist-packages/debug_toolbar/templates',
)


Expand All @@ -120,6 +123,7 @@
'apps.core',
'apps.member',
'apps.twitter',
'debug_toolbar',
)

# One-week activation window; you may, of course, use a different value.
Expand All @@ -138,6 +142,8 @@

AUTH_PROFILE_MODULE = "member.Member"

INTERNAL_IPS = ('114.254.99.95',)

# local_settings.py can be used to override environment-specific settings
# like database and email that differ between development and production.
try:
Expand Down

0 comments on commit 828513d

Please sign in to comment.