﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27389	Cannot use QueryDict without configuring settings first	Jaap Roes	nobody	"This is not really a bug, but I was surprised by this behaviour:

{{{
>>> from django.http import QueryDict
>>> q = QueryDict('a=1&a=2&b=3&c=4&c=5&d')
Traceback (most recent call last):
  File ""<stdin>"", line 1, in <module>
  File ""/path/to/lib/python3.4/site-packages/django/http/request.py"", line 377, in __init__
    encoding = settings.DEFAULT_CHARSET
  File ""/path/to/lib/python3.4/site-packages/django/conf/__init__.py"", line 53, in __getattr__
    self._setup(name)
  File ""/path/to/lib/python3.4/site-packages/django/conf/__init__.py"", line 39, in _setup
    % (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_CHARSET, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
}}}

The `QueryDict` implementation relies on two Django settings `DEFAULT_CHARSET` and `DATA_UPLOAD_MAX_NUMBER_FIELDS`, both have sane defaults (`'utf-8'` and `1000`) and are probably rarely overruled in user settings. Would it be acceptable to just use these values if settings aren't configured?"	Cleanup/optimization	closed	HTTP handling	dev	Normal	wontfix			Unreviewed	0	0	0	0	0	0
