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

Save too large excel file to django model #36

Closed
sleep2144985 opened this issue Jun 7, 2017 · 3 comments
Closed

Save too large excel file to django model #36

sleep2144985 opened this issue Jun 7, 2017 · 3 comments

Comments

@sleep2144985
Copy link

sleep2144985 commented Jun 7, 2017

Excuse me,Do too large xlsx file possible effect save "save_book_to_database" function?
I try to upload a 6.8M xlsx file to save_book_to_database but my table is empty.

@sleep2144985
Copy link
Author

sleep2144985 commented Jun 7, 2017

This is my code.

    request.FILE['docfile'].save_book_to_database(
        models=[NewModel],
        initializers=[None],
        mapdicts=[convertcol,convertcol]
        )

convertcol is a list,correspond xlsx column header.
Sheet name file name,and model name are same.

@chfw
Copy link
Member

chfw commented Jun 7, 2017

Quickly, if mapdicts should be a list, its member should be string names or column names that match your model columns

@sleep2144985
Copy link
Author

Oh,model columns and mapdicts are same,but I find out my problem.
Maybe .xlsx file have any problem so save_book_to_database fail.
Thank you for your reply.

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