pywa icon indicating copy to clipboard operation
pywa copied to clipboard

Django Server need to implemented.

Open sunil-kothiyal opened this issue 1 year ago • 3 comments

Describe the bug

This is a great app for whatsapp APIs Please add django sever to reach a better community,

To Reproduce

No response

Expected behavior

No response

pywa version

No response

python version

No response

os

No response

Additional context

No response

sunil-kothiyal avatar Mar 19 '24 16:03 sunil-kothiyal

Hey thanks. We are aware of that. It's on the list of things to add.

yehuda-lev avatar Mar 19 '24 16:03 yehuda-lev

Thanks @yehuda-lev for the reassurance, when can we expect Django to be supported ?

I'm working on adding WhatsApp support for a Farmer's App running on a Django Backend but not sure if I should use the normal Django Rest Framework for the callback or wait for official Django support.

I'd be eternally grateful if the handlers & decorators Support Django out of the box soon 👍

scroogeT avatar Mar 20 '24 08:03 scroogeT

The Django framework is not like all other web frameworks (flask, fadtapi etc), and its routes structure works in a different way, therefore supporting the library requires thinking about how to perform the automatic registration of the webhook without special configuration on the part of the user. We'd love to get ideas on how to add Django support :)

david-lev avatar Mar 20 '24 13:03 david-lev

Hi @scroogeT Try use this https://pywa.readthedocs.io/en/latest/content/client/client_reference.html#pywa.client.WhatsApp.webhook_update_handler and this https://pywa.readthedocs.io/en/latest/content/client/client_reference.html#pywa.client.WhatsApp.webhook_challenge_handler

david-lev avatar Jun 01 '24 22:06 david-lev