TypeError at /warehouse_report/buch/

__init__() got an unexpected keyword argument 'mimetype'
Request Method: POST
Request URL: http://127.0.0.1:8000/warehouse_report/buch/
Django Version: 1.7b1
Exception Type: TypeError
Exception Value:
__init__() got an unexpected keyword argument 'mimetype'
Exception Location: /usr/local/lib/python2.7/dist-packages/Django-1.7b1-py2.7.egg/django/http/response.py in __init__, line 320
Python Executable: /usr/bin/python
Python Version: 2.7.5
Python Path:
['/home/ski/Development/DJ17/potolok',
 '/usr/local/lib/python2.7/dist-packages/Django-1.7b1-py2.7.egg',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
 '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
Server time: Пнд, 14 Апр 2014 19:45:46 +0300

Traceback Switch to copy-and-paste view

Request information

GET

No GET data

POST

Variable Value
csrfmiddlewaretoken
u'gI2nZanPVHWdA9FsGcU5pD0b89mfgmyU'
start_date
u''
end_date
u''
w_set
u'1'

FILES

No FILES data

Variable Value
__utmz
'96992031.1387472216.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
sessionid
'n4r23un1j2at4e8xhd92b1ix80x8gfeb'
csrftoken
'gI2nZanPVHWdA9FsGcU5pD0b89mfgmyU'
__utma
'96992031.1703005798.1387472216.1397489460.1397493931.32'
__utmb
'96992031.9.10.1397493931'
__utmc
'96992031'
django_language
'ru'

META

Variable Value
MDMSESSION
'default'
RUN_MAIN
'true'
HTTP_REFERER
'http://127.0.0.1:8000/warehouse_reports/'
GJS_DEBUG_OUTPUT
'stderr'
SERVER_SOFTWARE
'WSGIServer/0.1 Python/2.7.5+'
SCRIPT_NAME
u''
MDM_LANG
'ru_RU.UTF-8'
WINDOWID
'46137351'
HTTP_ORIGIN
'http://127.0.0.1:8000'
SERVER_PROTOCOL
'HTTP/1.1'
LC_PAPER
'be_BY.UTF-8'
HOME
'/home/ski'
DISPLAY
':0'
LANG
'ru_RU.UTF-8'
VIRTUAL_ENV
'/home/ski/Development/Dj17'
SHELL
'/bin/bash'
PATH_INFO
u'/warehouse_report/buch/'
LC_MONETARY
'be_BY.UTF-8'
MANDATORY_PATH
'/usr/share/gconf/default.mandatory.path'
CLUTTER_DISABLE_XINPUT
'1'
TEXTDOMAIN
'im-config'
SERVER_PORT
'8000'
USERNAME
'ski'
GDM_XSERVER_LOCATION
'local'
XDG_RUNTIME_DIR
'/run/user/1000'
LC_ADDRESS
'be_BY.UTF-8'
CINNAMON_VERSION
'2.0.14'
VTE_VERSION
'3406'
HTTP_HOST
'127.0.0.1:8000'
HTTP_CACHE_CONTROL
'max-age=0'
XDG_SESSION_ID
'c1'
DBUS_SESSION_BUS_ADDRESS
'unix:abstract=/tmp/dbus-tRAElqBaxN,guid=fe2e3165f8bd87120818d377534bc062'
GNOME_KEYRING_PID
'1640'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
DESKTOP_SESSION
'default'
wsgi.version
(1, 0)
DEFAULTS_PATH
'/usr/share/gconf/default.default.path'
wsgi.run_once
False
wsgi.errors
<open file '<stderr>', mode 'w' at 0x7f3c49d1f1e0>
wsgi.multiprocess
False
HTTP_ACCEPT_LANGUAGE
'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4,be;q=0.2'
MDM_XSERVER_LOCATION
'local'
REQUEST_METHOD
'POST'
LC_NAME
'be_BY.UTF-8'
LS_COLORS
'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:'
XDG_SEAT
'seat0'
LC_NUMERIC
'be_BY.UTF-8'
HTTP_COOKIE
'django_language=ru; sessionid=n4r23un1j2at4e8xhd92b1ix80x8gfeb; csrftoken=gI2nZanPVHWdA9FsGcU5pD0b89mfgmyU; __utma=96992031.1703005798.1387472216.1397489460.1397493931.32; __utmb=96992031.9.10.1397493931; __utmc=96992031; __utmz=96992031.1387472216.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'
GNOME_DESKTOP_SESSION_ID
'this-is-deprecated'
XDG_CURRENT_DESKTOP
'GNOME'
QUERY_STRING
''
LOGNAME
'ski'
USER
'ski'
GNOME_KEYRING_CONTROL
'/run/user/1000/keyring-egNCfe'
XDG_VTNR
'7'
PATH
'/home/ski/Development/Dj17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games'
PS1
'(Dj17)${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[01;34m\\] \\w \\$\\[\\033[00m\\] '
SSH_AGENT_PID
'1794'
TERM
'xterm'
HTTP_USER_AGENT
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/33.0.1750.152 Chrome/33.0.1750.152 Safari/537.36'
TZ
'Europe/Minsk'
XDG_SESSION_COOKIE
'e277462da3c3b28fea259b0952b2e2ac-1397473378.110678-811336745'
SERVER_NAME
'localhost'
SESSION_MANAGER
'local/Desknop:@/tmp/.ICE-unix/1716,unix/Desknop:/tmp/.ICE-unix/1716'
LC_MEASUREMENT
'be_BY.UTF-8'
wsgi.url_scheme
'http'
MC_TMPDIR
'/tmp/mc-ski'
WINDOWPATH
'7'
GPG_AGENT_INFO
'/run/user/1000/keyring-egNCfe/gpg:0:1'
CONTENT_LENGTH
'82'
SHLVL
'2'
CONTENT_TYPE
'application/x-www-form-urlencoded'
MC_SID
'10532'
SSH_AUTH_SOCK
'/run/user/1000/keyring-egNCfe/ssh'
GDMSESSION
'default'
wsgi.input
<socket._fileobject object at 0x7f3c384c1550>
TEXTDOMAINDIR
'/usr/share/locale/'
wsgi.multithread
True
HTTP_CONNECTION
'keep-alive'
_
'/usr/bin/python'
XAUTHORITY
'/home/ski/.Xauthority'
LC_IDENTIFICATION
'be_BY.UTF-8'
XDG_CONFIG_DIRS
'/etc/xdg/xdg-default:/etc/xdg'
GATEWAY_INTERFACE
'CGI/1.1'
CSRF_COOKIE
u'gI2nZanPVHWdA9FsGcU5pD0b89mfgmyU'
OLDPWD
'/home/ski/Development/DJ17'
REMOTE_ADDR
'127.0.0.1'
LC_TELEPHONE
'be_BY.UTF-8'
HTTP_ACCEPT_ENCODING
'gzip,deflate,sdch'
HISTCONTROL
'ignorespace'
XDG_DATA_DIRS
'/usr/share/default:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/'
PWD
'/home/ski/Development/DJ17/potolok'
HTTP_DNT
'1'
DJANGO_SETTINGS_MODULE
'potolok.settings'
COLORTERM
'gnome-terminal'
LC_TIME
'be_BY.UTF-8'
wsgi.file_wrapper
''
REMOTE_HOST
''
GJS_DEBUG_TOPICS
'JS ERROR;JS LOG'

Settings

Using settings module potolok.settings

Setting Value
USE_L10N
True
USE_THOUSAND_SEPARATOR
False
CSRF_COOKIE_SECURE
False
LANGUAGE_CODE
'ru-ru'
ROOT_URLCONF
'potolok.urls'
MANAGERS
()
DEFAULT_CHARSET
'utf-8'
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
STATIC_ROOT
'/home/ski/Development/DJ15/dj15/potolok/files/'
ALLOWED_HOSTS
['new.sdv.by', 'sdv.by', 'www.sdv.by']
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_SUBJECT_PREFIX
'[Django] '
SEND_BROKEN_LINK_EMAILS
False
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
ADMIN_FOR
()
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
             'AUTOCOMMIT': True,
             'CONN_MAX_AGE': 0,
             'ENGINE': 'django.db.backends.mysql',
             'HOST': '',
             'NAME': 'potolok',
             'OPTIONS': {},
             'PASSWORD': u'********************',
             'PORT': '',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': 'UTC',
             'USER': 'potolok'}}
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
('django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
DEFAULT_CONTENT_TYPE
'text/html'
APPEND_SLASH
True
LOCALE_PATHS
()
DATABASE_ROUTERS
[]
DEFAULT_TABLESPACE
''
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_PATH
'/'
SILENCED_SYSTEM_CHECKS
[]
MIDDLEWARE_CLASSES
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')
USE_I18N
True
THOUSAND_SEPARATOR
','
SECRET_KEY
u'********************'
LANGUAGE_COOKIE_NAME
'django_language'
DEFAULT_INDEX_TABLESPACE
''
TRANSACTIONS_MANAGED
False
LOGGING_CONFIG
'logging.config.dictConfig'
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader')
FIRST_DAY_OF_WEEK
0
WSGI_APPLICATION
'potolok.wsgi.application'
TEMPLATE_DEBUG
True
X_FRAME_OPTIONS
'SAMEORIGIN'
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
FORCE_SCRIPT_NAME
None
USE_X_FORWARDED_HOST
False
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE
False
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
LANGUAGE_COOKIE_DOMAIN
None
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'base',
 'dealers',
 'orders',
 'potolok',
 'reports',
 'warehouse',
 'south',
 'chained_selects')
LANGUAGES
(('af', 'Afrikaans'),
 ('ar', 'Arabic'),
 ('az', 'Azerbaijani'),
 ('bg', 'Bulgarian'),
 ('be', 'Belarusian'),
 ('bn', 'Bengali'),
 ('br', 'Breton'),
 ('bs', 'Bosnian'),
 ('ca', 'Catalan'),
 ('cs', 'Czech'),
 ('cy', 'Welsh'),
 ('da', 'Danish'),
 ('de', 'German'),
 ('el', 'Greek'),
 ('en', 'English'),
 ('en-au', 'Australian English'),
 ('en-gb', 'British English'),
 ('eo', 'Esperanto'),
 ('es', 'Spanish'),
 ('es-ar', 'Argentinian Spanish'),
 ('es-mx', 'Mexican Spanish'),
 ('es-ni', 'Nicaraguan Spanish'),
 ('es-ve', 'Venezuelan Spanish'),
 ('et', 'Estonian'),
 ('eu', 'Basque'),
 ('fa', 'Persian'),
 ('fi', 'Finnish'),
 ('fr', 'French'),
 ('fy', 'Frisian'),
 ('ga', 'Irish'),
 ('gl', 'Galician'),
 ('he', 'Hebrew'),
 ('hi', 'Hindi'),
 ('hr', 'Croatian'),
 ('hu', 'Hungarian'),
 ('ia', 'Interlingua'),
 ('id', 'Indonesian'),
 ('is', 'Icelandic'),
 ('it', 'Italian'),
 ('ja', 'Japanese'),
 ('ka', 'Georgian'),
 ('kk', 'Kazakh'),
 ('km', 'Khmer'),
 ('kn', 'Kannada'),
 ('ko', 'Korean'),
 ('lb', 'Luxembourgish'),
 ('lt', 'Lithuanian'),
 ('lv', 'Latvian'),
 ('mk', 'Macedonian'),
 ('ml', 'Malayalam'),
 ('mn', 'Mongolian'),
 ('my', 'Burmese'),
 ('nb', 'Norwegian Bokmal'),
 ('ne', 'Nepali'),
 ('nl', 'Dutch'),
 ('nn', 'Norwegian Nynorsk'),
 ('os', 'Ossetic'),
 ('pa', 'Punjabi'),
 ('pl', 'Polish'),
 ('pt', 'Portuguese'),
 ('pt-br', 'Brazilian Portuguese'),
 ('ro', 'Romanian'),
 ('ru', 'Russian'),
 ('sk', 'Slovak'),
 ('sl', 'Slovenian'),
 ('sq', 'Albanian'),
 ('sr', 'Serbian'),
 ('sr-latn', 'Serbian Latin'),
 ('sv', 'Swedish'),
 ('sw', 'Swahili'),
 ('ta', 'Tamil'),
 ('te', 'Telugu'),
 ('th', 'Thai'),
 ('tr', 'Turkish'),
 ('tt', 'Tatar'),
 ('udm', 'Udmurt'),
 ('uk', 'Ukrainian'),
 ('ur', 'Urdu'),
 ('vi', 'Vietnamese'),
 ('zh-cn', 'Simplified Chinese'),
 ('zh-hans', 'Simplified Chinese'),
 ('zh-hant', 'Traditional Chinese'),
 ('zh-tw', 'Traditional Chinese'))
COMMENTS_ALLOW_PROFANITIES
False
STATICFILES_DIRS
('/home/ski/Development/DJ15/dj15/potolok/static/',)
PREPEND_WWW
False
SECURE_PROXY_SSL_HEADER
None
LANGUAGE_COOKIE_AGE
None
SESSION_COOKIE_HTTPONLY
True
DEBUG_PROPAGATE_EXCEPTIONS
False
INTERNAL_IPS
()
MONTH_DAY_FORMAT
'F j'
LOGIN_URL
'/accounts/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
TIME_FORMAT
'P'
AUTH_USER_MODEL
'base.P_User'
DATE_INPUT_FORMATS
('%d.%m.%Y', '%d/%m/%Y')
CSRF_COOKIE_NAME
'csrftoken'
EMAIL_HOST_PASSWORD
u'********************'
PASSWORD_RESET_TIMEOUT_DAYS
u'********************'
SESSION_FILE_PATH
None
CACHE_MIDDLEWARE_ALIAS
'default'
SESSION_SAVE_EVERY_REQUEST
False
NUMBER_GROUPING
0
SESSION_ENGINE
'django.contrib.sessions.backends.db'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH
'/'
LOGIN_REDIRECT_URL
'/accounts/profile/'
DECIMAL_SEPARATOR
'.'
IGNORABLE_404_URLS
()
MIGRATION_MODULES
{}
TEMPLATE_STRING_IF_INVALID
''
LOGOUT_URL
'/accounts/logout/'
EMAIL_USE_TLS
False
FIXTURE_DIRS
()
EMAIL_HOST
'ox20m.atservers.net'
DATE_FORMAT
'd.m.Y'
MEDIA_ROOT
'/home/ski/Development/DJ15/dj15/potolok/media/'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
ADMINS
()
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
MEDIA_URL
'/media/'
DATETIME_FORMAT
'N j, Y, P'
TEMPLATE_DIRS
('/home/ski/Development/DJ15/dj15/potolok/templates/',
 '/home/ski/Development/DJ15/dj15/potolok/')
SITE_ID
1
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
LOGGING
{'disable_existing_loggers': False,
 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}},
 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',
                              'filters': ['require_debug_false'],
                              'level': 'ERROR'}},
 'loggers': {'django.request': {'handlers': ['mail_admins'],
                                'level': 'ERROR',
                                'propagate': True}},
 'version': 1}
SHORT_DATE_FORMAT
'd.m.Y'
TEST_RUNNER
'django.test.runner.DiscoverRunner'
CACHE_MIDDLEWARE_KEY_PREFIX
u'********************'
TIME_ZONE
'Europe/Minsk'
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_SSL
False
TEMPLATE_CONTEXT_PROCESSORS
('django.contrib.auth.context_processors.auth',
 'django.core.context_processors.debug',
 'django.core.context_processors.i18n',
 'django.core.context_processors.media',
 'django.core.context_processors.static',
 'django.core.context_processors.tz',
 'django.contrib.messages.context_processors.messages')
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'potolok.settings'
USE_ETAGS
False
LANGUAGES_BIDI
('he', 'ar', 'fa', 'ur')
FILE_UPLOAD_TEMP_DIR
None
CSRF_COOKIE_AGE
31449600
STATIC_URL
'/files/'
EMAIL_PORT
25
USE_TZ
True
SHORT_DATETIME_FORMAT
'm/d/Y P'
PASSWORD_HASHERS
u'********************'
ABSOLUTE_URL_OVERRIDES
{}
LANGUAGE_COOKIE_PATH
'/'
CACHE_MIDDLEWARE_SECONDS
600
CSRF_COOKIE_HTTPONLY
False
DATETIME_INPUT_FORMATS
('%d-%m-%Y %H:%M:%S',
 '%d-%m-%Y %H:%M:%S%f',
 '%d-%m-%Y %H:%M',
 '%d-%m-%Y',
 '%d-%m-%y %H:%M:%S',
 '%d-%m-%y %H:%M:%S%f',
 '%d-%m-%y %H:%M',
 '%d-%m-%y',
 '%d/%m/%Y %H:%M:%S',
 '%d/%m/%Y %H:%M:%S%f',
 '%d/%m/%Y %H:%M',
 '%d/%m/%Y',
 '%d/%m/%y %H:%M:%S',
 '%d/%m/%y %H:%M:%S%f',
 '%d/%m/%y %H:%M',
 '%d/%m/%y')
EMAIL_HOST_USER
'logger@sdv.by'
PROFANITIES_LIST
u'********************'

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.