Tuesday, January 26, 2021

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

Hey Kasper, yes I ned to save it as a model so that i can use it to access information.

On Mon, Jan 25, 2021 at 3:03 PM Kasper Laudrup <laudrup@stacktrace.dk> wrote:
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/eb2f8e35-4a93-c2a6-030c-4584bb3090f4%40stacktrace.dk.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPsfuoeCO5z0jJD_3Kg2Y0LS48rsX575eGhc%2BsyOkRfwLcXp8w%40mail.gmail.com.

No comments:

Post a Comment