<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>encoding.py</filename>
    </added>
    <added>
      <filename>feedgenerator.py</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,3 @@
 *.pyc
 app.yaml
 settings.py
-django</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,30 +1,21 @@
 import BeautifulSoup
 import demjson
+import feedgenerator
 import functools
 import hashlib
 import logging
 import os
-import sys
 import uuid
 import urllib
 
-# Remove the standard version of Django.
-for k in [k for k in sys.modules if k.startswith('django')]:
-    del sys.modules[k]
-
-# Import Django from a zipfile if we don't have it on our path.
-if &quot;django&quot; not in os.listdir(os.path.abspath(os.path.dirname(__file__))):
-    sys.path.insert(0, os.path.abspath('django.zip'))
-sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
-
 from django.conf import settings
 settings._target = None
 os.environ[&quot;DJANGO_SETTINGS_MODULE&quot;] = &quot;settings&quot;
 
-from django import forms
+from django import newforms as forms
 from django.template.defaultfilters import slugify
-from django.utils import feedgenerator
 from django.utils import simplejson
+from django.utils.feedgenerator import Enclosure
 
 from google.appengine.api import memcache
 from google.appengine.api import urlfetch
@@ -82,7 +73,7 @@ class MediaRSSFeed(feedgenerator.Atom1Feed):
             })
 
     def add_thumbnails_element(self, handler, item):
-        thumbnails = item.get(&quot;thumbnails&quot;, [])
+        thumbnails = item.get(&quot;thumbnails&quot;, None)
         for thumbnail in thumbnails:
             handler.startElement(&quot;media:group&quot;, {})
             if thumbnail[&quot;title&quot;]:
@@ -201,8 +192,8 @@ class BaseRequestHandler(webapp.RequestHandler):
         if img:
             headers = self.fetch_headers(img[&quot;src&quot;])
             if headers:
-                enclosure = feedgerator.Enclosure(img[&quot;src&quot;],
-                    headers[&quot;Content-Length&quot;], headers[&quot;Content-Type&quot;])
+                enclosure = Enclosure(img[&quot;src&quot;], headers[&quot;Content-Length&quot;],
+                    headers[&quot;Content-Type&quot;])
                 return enclosure
         return None
 
@@ -522,7 +513,7 @@ application = webapp.WSGIApplication([
 ], debug=True)
 
 def main():
-    logging.getLogger().setLevel(logging.ERROR)
+    logging.getLogger().setLevel(logging.DEBUG)
     run_wsgi_app(application)
 
 if __name__ == &quot;__main__&quot;:</diff>
      <filename>main.py</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,3 @@
-import os
-
-TEMPLATE_DIRS = (
-    os.path.dirname(__file__) + &quot;/templates&quot;,
-)
 TITLE = &quot;My Blog&quot;
 EMAIL = &quot;me@example.com&quot;
 NAME = &quot;Me&quot;</diff>
      <filename>settings.py.sample</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@
                 {{ entry.published|bettertimesince }}
             &lt;/div&gt;
             &lt;div class=&quot;body&quot;&gt;
-                {{ entry.body|safe }}
+                {{ entry.body }}
             &lt;/div&gt;
             &lt;div class=&quot;share&quot;&gt;
                 &lt;a href=&quot;#&quot; onclick=&quot;var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('src','http://friendfeed.com/share/bookmarklet/javascript?url={% filter urlencode %}http://{{ request.host }}/e/{{ entry.slug }}{% endfilter %}&amp;amp;title={{ entry.title|urlencode }}');document.body.appendChild(e); return false;&quot;&gt;&lt;img src=&quot;http://friendfeed.com/static/images/icons/internal.png&quot; title=&quot;Share on FriendFeed&quot; alt=&quot;Share on FriendFeed&quot;/&gt;&lt;/a&gt;</diff>
      <filename>templates/entries.html</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>django.zip</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>2081d4b112aa0416c62008485276c3f207b5ca19</id>
    </parent>
  </parents>
  <author>
    <name>Benjamin Golub</name>
    <email>bgolub@benjamingolub.com</email>
  </author>
  <url>http://github.com/bgolub/blog/commit/fd0136015039829bb1a21ca4de52a29a3a964177</url>
  <id>fd0136015039829bb1a21ca4de52a29a3a964177</id>
  <committed-date>2009-03-03T06:18:37-08:00</committed-date>
  <authored-date>2009-03-03T06:18:37-08:00</authored-date>
  <message>Revert &quot;remove hacky feedgenerator implementation by using django.zip or optionally a true django 1.0 package (faster)&quot;

This reverts commit eb5ceff84c8353d04ff3e2e89ff0e80bd592f3c1.</message>
  <tree>ec0f713c78320cb3e9d4c596e651640d07faf9d2</tree>
  <committer>
    <name>Benjamin Golub</name>
    <email>bgolub@benjamingolub.com</email>
  </committer>
</commit>
