简体   繁体   中英

How to post JSON data from NodeJS to Django?

The architecture of our app uses NodeJS and Django together.

I need to post a JSON data from NodeJS to Django without receiving any request before that from Django. Because, there is a function in NodeJS that generates and returns JSON data such that whenever this data returned, NodeJS must post it to Django.

I don't know any thing about that and have not any idea for that.

What should I do? What APIs/modules do I need to use and how should I work with NodeJS and Django to fulfill it?

api can be created in django with necessary permissions & authentication, then can continue with function call in nodejs (any medium to trigger code to submit data in django api).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM