Code Monkey home page Code Monkey logo

Comments (5)

chfw avatar chfw commented on June 17, 2024

surely, you can as long as your db model won't have: not null and you do not omit primary key if it is not auto-generated.

from django-excel.

riyenas0925 avatar riyenas0925 commented on June 17, 2024

First of all, thank you for your reply.

Current excel file contents are as follows:
kakaotalk_20181213_075818492

Do I have to save and use all test1,test2,test3 of Excel to use the above test2 data?
Is there any way to store only test2 in the database?

Because there are so many columns of excel data that I will use, I think it will take a long time to store them all in the database.

Thanks!

from django-excel.

chfw avatar chfw commented on June 17, 2024

alright, then you will have to use request.FILES['file'].get_sheet() first, then filter out the unwanted data before saving, here are the tutorial for pyexcel, which is the core library for opening the excel sheets: https://pyexcel.readthedocs.io/en/latest

from django-excel.

riyenas0925 avatar riyenas0925 commented on June 17, 2024

Thanks!

from django-excel.

riyenas0925 avatar riyenas0925 commented on June 17, 2024

Thanks for your help.

The current model is set to Sheet1, and the Excel sheet name is set to Sheet1.

However, if the name of the Excel sheet is sheet1, it works, but if it contains uppercase letters like Sheet1, an error occurs.

image

How do I read an Excel file named Sheet1?

from django-excel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.