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
File "/home/tops/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
File "/home/tops/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
File "/home/tops/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
File "/home/tops/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
File "/home/tops/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner
File "/home/tops/lib/python2.7/site-packages/import_export/admin.py" in import_action
File "/home/tops/lib/python2.7/site-packages/import_export/resources.py" in import_data
Exception Type: ImproperlyConfigured at /admin/resources/vehicle/import/
Exception Value:
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.
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