Skip to content

Commit

Permalink
Logging support for playdoh.
Browse files Browse the repository at this point in the history
  • Loading branch information
davedash committed Aug 24, 2011
1 parent 14b396b commit 9ea09cb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions apps/examples/views.py
Expand Up @@ -3,13 +3,17 @@
from django import http

import bleach
import commonware
import jingo
from session_csrf import anonymous_csrf


log = commonware.log.getLogger('playdoh')

def home(request):
"""Main example view."""
data = {} # You'd add data here that you're sending to the template.
log.debug("I'm alive!")
return jingo.render(request, 'examples/home.html', data)


Expand Down
6 changes: 2 additions & 4 deletions settings.py
Expand Up @@ -3,9 +3,6 @@

from funfactory.settings_base import *

# Logging
SYSLOG_TAG = "http_app_playdoh" # Make this unique to your project.


# Bundles is a dictionary of two dictionaries, css and js, which list css files
# and js files that can be bundled together by the minify app.
Expand All @@ -28,7 +25,6 @@
'examples',
]


# Tells the extract script what files to look for L10n in and what function
# handles the extraction. The Tower library expects this.

Expand All @@ -44,3 +40,5 @@
# # may use.
# ('media/js/**.js', 'javascript'),
# ]

LOGGING = dict(loggers=dict(playdoh = {'level': logging.DEBUG}))
5 changes: 5 additions & 0 deletions settings_local.py-dist
Expand Up @@ -58,3 +58,8 @@ SECRET_KEY = '1iz#v0m55@h26^m6hxk3a7at*h$qj_2a$juu1#nv50548j(x1v'
# BROKER_PASSWORD = 'playdoh'
# BROKER_VHOST = 'playdoh'
# CELERY_RESULT_BACKEND = 'amqp'

## Log settings

# SYSLOG_TAG = "http_app_playdoh" # Make this unique to your project.
# LOGGING = dict(loggers=dict(playdoh = {'level': logging.DEBUG}))
2 changes: 1 addition & 1 deletion vendor
Submodule vendor updated 2 files
+1 −1 src/funfactory
+1 −1 src/tower

0 comments on commit 9ea09cb

Please sign in to comment.