Changed settings imports from [2639] to use 'from django.conf import settings', to make it easier to merge to magic-removal

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-04-10 00:01:59 +00:00
parent bc4638d722
commit 3bb340271c
1 changed files with 3 additions and 3 deletions

View File

@ -146,10 +146,10 @@ def parse_cookie(cookie):
class HttpResponse(object): class HttpResponse(object):
"A basic HTTP response, with content and dictionary-accessed headers" "A basic HTTP response, with content and dictionary-accessed headers"
def __init__(self, content='', mimetype=None): def __init__(self, content='', mimetype=None):
from django.conf.settings import DEFAULT_CONTENT_TYPE, DEFAULT_CHARSET from django.conf import settings
self._charset = DEFAULT_CHARSET self._charset = settings.DEFAULT_CHARSET
if not mimetype: if not mimetype:
mimetype = "%s; charset=%s" % (DEFAULT_CONTENT_TYPE, DEFAULT_CHARSET) mimetype = "%s; charset=%s" % (settings.DEFAULT_CONTENT_TYPE, settings.DEFAULT_CHARSET)
if hasattr(content, '__iter__'): if hasattr(content, '__iter__'):
self.iterator = content self.iterator = content
self._is_string = False self._is_string = False