To pre-empt a question you might be asking, if you are trying to call out to an API during the request-response cycle, you can find that the request to your app times out. To solve this, people often use a task-runner such as celery (https://github.com/celery/celery). Check out this tutorial: http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html
On Sunday, December 27, 2015, Alistair Lobo <alistairlobo95@gmail.com> wrote:
-- On Sunday, December 27, 2015, Alistair Lobo <alistairlobo95@gmail.com> wrote:
I'm a beginner to using API's--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5cea17b1-fd12-4808-a13e-ccd9f4abbd6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2By5TLbR%3DPpF%2BXskQtypBTjudSuX67CsV8XTG8TUAq2Kc_539g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment