Django-import-export: ImproperlyConfigured

Created on 26 Oct 2016  路  3Comments  路  Source: django-import-export/django-import-export

I installed the django-import-export ,whenever import file , the following problem occured, export is ok, just import err? does anybody came across the problem?

Environment:

Request Method: POST
Request URL:

Django Version: 1.10.1
Python Version: 2.7.8
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'resources.apps.ResourcesConfig',
'sso_auth.apps.SsoAuthConfig',
'import_export',
'tastypie']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'middleware.crossdomainxhr.XsSharing',
'sso_auth.middleware.ActiveUserMiddleware']

Traceback:

File "/home/tops/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner

  1. response = get_response(request)

File "/home/tops/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response

  1. response = self.process_exception_by_middleware(e, request)

File "/home/tops/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response

  1. response = wrapped_callback(request, _callback_args, *_callback_kwargs)

File "/home/tops/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view

  1. response = view_func(request, _args, *_kwargs)

File "/home/tops/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func

  1. response = view_func(request, _args, *_kwargs)

File "/home/tops/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner

  1. return view(request, _args, *_kwargs)

File "/home/tops/lib/python2.7/site-packages/import_export/admin.py" in import_action

  1. user=request.user)

File "/home/tops/lib/python2.7/site-packages/import_export/resources.py" in import_data

  1. raise ImproperlyConfigured

Exception Type: ImproperlyConfigured at /admin/resources/vehicle/import/
Exception Value:

Most helpful comment

I think error raised because you db module doesn't support transaction.
try after setting up below option in django setting file.

IMPORT_EXPORT_USE_TRANSACTIONS = False

All 3 comments

Posting a stack trace with zero context is not enough to help troubleshoot a problem (here, on Stack Overflow, anywhere). You need to actually describe the problem you're having. For example: how exactly are you calling the library? What behaviour are you expecting? Check out: https://stackoverflow.com/help/how-to-ask

I think error raised because you db module doesn't support transaction.
try after setting up below option in django setting file.

IMPORT_EXPORT_USE_TRANSACTIONS = False

A better stack trace is needed. Please reopen with more details.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daysleeper1980 picture daysleeper1980  路  6Comments

klabedz picture klabedz  路  6Comments

PetrDlouhy picture PetrDlouhy  路  3Comments

lx1054331851 picture lx1054331851  路  5Comments

aidanlister picture aidanlister  路  5Comments