]> git.openstreetmap.org Git - osqa.git/commitdiff
Merge pull request #44 from udacity/merge_small_prs
authorJavyer Der Derian <javier@tribalo.net>
Thu, 17 Apr 2014 21:57:03 +0000 (18:57 -0300)
committerJavyer Der Derian <javier@tribalo.net>
Thu, 17 Apr 2014 21:57:03 +0000 (18:57 -0300)
Merge small prs

forum/views/meta.py
forum/views/readers.py
forum_modules/akismet/startup.py

index a47cf1d8bbc5f04ffbae53c942c41d4e0842e414..e7d151588a8402a6e0c2b73c19cf03b9005e91c0 100644 (file)
@@ -37,7 +37,7 @@ def static(request, title, content):
 def media(request, skin, path):
     response = serve(request, "%s/media/%s" % (skin, path),
                  document_root=os.path.join(os.path.dirname(os.path.dirname(__file__)), 'skins').replace('\\', '/'))
-    content_type = response['Content-Type']
+    content_type = response.get('Content-Type', '')
     if ('charset=' not in content_type):
         if (content_type.startswith('text') or content_type=='application/x-javascript'):
             content_type += '; charset=utf-8'
index 669eaf3006a849aefdaf84d40e3adf72d6089742..a8b94e92e200bec718b5f77aec4a07a4b2d1cb1f 100644 (file)
@@ -8,6 +8,7 @@ from django.core.paginator import Paginator, EmptyPage, InvalidPage
 from django.template import RequestContext
 from django import template
 from django.utils.html import *
+from django.utils.http import urlquote
 from django.db.models import Q, Count
 from django.utils.translation import ugettext as _
 from django.core.urlresolvers import reverse
index 2387e05d620fe5f609a85942b943650fc2b92191..c050754add3acb4ba8ba228383257d1e46d1352d 100644 (file)
@@ -1,5 +1,4 @@
 import json
-import loggin
 
 from django.utils.translation import ugettext as _
 from django.http import HttpResponse, HttpResponseRedirect