Monday, January 25, 2021

Re: How to intergrate openpyxl with django and using the excel sheet as the database to query data

Hi Ernest,

On 25/01/2021 10.43, Ernest Thuku wrote:
> Hello kasper, thank you so much for the information. I know how to use
> the django forms. The issue was where will I include the python file
> above.

I'm not sure I understand the problem. The file you posted earlier just
contains a Python function. You can copy that function into your views
file or import the function like any other Python function.

> If I decide to uploadthe excel file and put store it in the
> django admin, how will I access its content. I hope its clear now maybe
> you can help.

Not sure what you mean by "store it in the django admin"? Do you want to
save it in a model that you can access/modify from Django Admin?

Kind regards,

Kasper Laudrup

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment