Ticket #545: django-avoid-import-hack.patch

File django-avoid-import-hack.patch, 559 bytes (added by robert@…, 19 years ago)

avoids importing from settings before environment set up in apache

  • django/utils/httpwrappers.py

     
    22from pprint import pformat
    33from urllib import urlencode
    44import datastructures
    5 from django.conf.settings import DEFAULT_MIME_TYPE
     5#from django.conf.settings import DEFAULT_MIME_TYPE
     6DEFAULT_MIME_TYPE='text/html'
    67
    78class HttpRequest(object): # needs to be new-style class because subclasses define "property"s
    89    "A basic HTTP request"
Back to Top