Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with few django instances #251

Closed
AyumuKasuga opened this issue Apr 27, 2015 · 1 comment
Closed

problem with few django instances #251

AyumuKasuga opened this issue Apr 27, 2015 · 1 comment

Comments

@AyumuKasuga
Copy link
Contributor

Hello! I have two django instances on two different servers (under one balancer but without sticky sessions) and sometimes I get error:
IOError: [Errno 2] No such file or directory: u'/tmp/tmph40kuA'

It's happens cause first time client gets response from first server (when executes import_action method https://github.com/bmihelac/django-import-export/blob/master/import_export/admin.py#L171) and tmpfile creates in filesystem of first server. Then client gets response from second server, executes process_import method (https://github.com/bmihelac/django-import-export/blob/master/import_export/admin.py#L115), but tmp file (from form import_file_name field) does not exists on second server tmp dir...

Maybe it's possible to add option for store tmpfile in custom location or redis/memcache or database?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants