mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	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:
		| @@ -146,10 +146,10 @@ def parse_cookie(cookie): | ||||
| class HttpResponse(object): | ||||
|     "A basic HTTP response, with content and dictionary-accessed headers" | ||||
|     def __init__(self, content='', mimetype=None): | ||||
|         from django.conf.settings import DEFAULT_CONTENT_TYPE, DEFAULT_CHARSET | ||||
|         self._charset = DEFAULT_CHARSET | ||||
|         from django.conf import settings | ||||
|         self._charset = settings.DEFAULT_CHARSET | ||||
|         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__'): | ||||
|             self.iterator = content | ||||
|             self._is_string = False | ||||
|   | ||||
		Reference in New Issue
	
	Block a user