magic-removal: changed explicit settings import to qualified settings import in django.http
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1987 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f15ce2d820
commit
e12eaa7e41
|
@ -143,8 +143,8 @@ class HttpResponse:
|
|||
"A basic HTTP response, with content and dictionary-accessed headers"
|
||||
def __init__(self, content='', mimetype=None):
|
||||
if not mimetype:
|
||||
from django.conf.settings import DEFAULT_CONTENT_TYPE, DEFAULT_CHARSET
|
||||
mimetype = "%s; charset=%s" % (DEFAULT_CONTENT_TYPE, DEFAULT_CHARSET)
|
||||
from django.conf import settings
|
||||
mimetype = "%s; charset=%s" % (settings.DEFAULT_CONTENT_TYPE, settings.DEFAULT_CHARSET)
|
||||
self.content = content
|
||||
self.headers = {'Content-Type':mimetype}
|
||||
self.cookies = SimpleCookie()
|
||||
|
|
Loading…
Reference in New Issue