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'
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
import json
-import loggin
from django.utils.translation import ugettext as _
from django.http import HttpResponse, HttpResponseRedirect
import settings
urlpatterns = patterns('',
- (r'^robots.txt$', lambda r: HttpResponse(settings.ROBOTS_FILE.value)),
+ (r'^robots.txt$', lambda r: HttpResponse(settings.ROBOTS_FILE.value, content_type='text/plain')),
)
python-openid
South
python-memcached
-django==1.3.7
+django==1.6.0
django-debug-toolbar
django-endless-pagination
pytz
USE_I18N = True
LANGUAGE_CODE = 'en'
-DJANGO_VERSION = 1.1
OSQA_DEFAULT_SKIN = 'default'
DISABLED_MODULES = ['books', 'recaptcha', 'project_badges']