Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

log to stderr

  • Loading branch information...
commit 10261abea9e564d12e194e9f553bf982e1be8a3d 1 parent bc058db
Justin Quick authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  Makefile
  2. +3 −3 native_tags/registry.py
2  Makefile
View
@@ -21,7 +21,7 @@ html:
perl -i -pe 's/_sources/sphinx_sources/g' `find export/ -name '*.html'`
upload:
- cd export/; git pull origin master; git commit -a -m 'doc update'; git push origin master
+ cd export/; git pull origin master; git add *; git commit -a -m 'doc update'; git push origin master
tex:
cd docs; make latex; make all-pdf
6 native_tags/registry.py
View
@@ -1,4 +1,5 @@
from os import listdir
+from sys import stderr
from django.conf import settings as djsettings
from django.template import add_to_builtins
from django.utils.importlib import import_module
@@ -31,7 +32,6 @@ def __init__(self):
try:
mod = import_module('.templatetags', app)
except ImportError, e:
- #print 'Warning: Failed to load module "%s.templatetags": %s' % (app, e)
continue
# TODO: Make this hurt less
@@ -40,13 +40,13 @@ def __init__(self):
n = f.split('.py')[0]
e = self.load_module('%s.templatetags.%s' % (app, n))
if e is not None:# and settings.DEBUG:
- print 'Warning: Failed to load module "%s.templatetags.%s": %s' % (app, n, e)
+ print >>stderr, 'Warning: Failed to load module "%s.templatetags.%s": %s' % (app, n, e)
# Load up the native contrib tags
for tag_module in settings.TAGS:
e = self.load_module(tag_module)
if e is not None:# and djsettings.DEBUG:
- print 'Warning: Failed to load module "%s": %s' % (tag_module, e)
+ print >>stderr, 'Warning: Failed to load module "%s": %s' % (tag_module, e)
# Add the BUILTIN_TAGS to Django's builtins
for mod in settings.BUILTIN_TAGS:
Please sign in to comment.
Something went wrong with that request. Please try again.