djangodjango-1.11

Django built in request library?


I know untill a couple years ago Django did not have one, as there are several questions here regarding this topic but they are all atleast two years old

How to send a POST request using django?

They mostly recommend to use python-request or urllib

My question is, does Django contains this by default now? A module to make POST/GET requests to another server, or is there still need to install external libs?

This is mostly to avoid bypassing cross domain policies in using APIs


Solution

  • Django has no built in library for making HTTP requests.
    Most used python library for HTTP requests is requests which you found here. It is simple to use, works well with Django. Here are docs.