Skip to content

Commit

Permalink
Update to DJango 1.0 (hat tip: Amit Chakradeo (अमित चक्रदेव))
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed May 20, 2010
1 parent cc11181 commit bc72bf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions planet/shell/dj.py
Expand Up @@ -19,6 +19,7 @@ def run(script, doc, output_file=None, options={}):
# I need to re-import the settings at every call because I have to
# set the TEMPLATE_DIRS variable programmatically
from django.conf import settings
settings._wrapped=None
try:
settings.configure(
DEBUG=True, TEMPLATE_DEBUG=True,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_filter_django.py
Expand Up @@ -24,7 +24,7 @@ def test_django_entry_title(self):
input = feed.read(); feed.close()
results = dj.run(
os.path.realpath('tests/data/filter/django/title.html.dj'), input)
self.assertEqual(results, "\xc2\xa1Atom-Powered Robots Run Amok!\n")
self.assertEqual(results, u"\xa1Atom-Powered Robots Run Amok!\n")

def test_django_config_context(self):
config.load('tests/data/filter/django/test.ini')
Expand Down

0 comments on commit bc72bf5

Please sign in to comment.