cj
if you can't buy it, use another resources 🤷🏻‍♂️ there are plenty on the Internet, and they are free
cj
to ask about if they have the PDF? you're kidding, right?
007
Just Google it.
Mirco
Use a VPN
Arthur
What is taskqueue in python?
cj
ask a friend to buy it for you, you give him the money, he gives you the book
cj
What is taskqueue in python?
Pritam. Here you have a useful link: https://duckduckgo.com/?q=What+is+taskqueue+in+python%3F
Doug
Does anyone have any experience with the rest api URLS? I'm having an issue right now where it's putting the http version of the site and not the https version of the site for every URL in the rest api. Where does the system get this URL, and how can I override it?
Doug
And the site is being access via the HTTPS version of the site, FYI.
Guillermo
@dougmorin0 are you using nginx?
Doug
nginx/gunicorn
Guillermo
Yes
You can try this in your reverse proxy block: proxy_set_header X-Forwarded-Proto $scheme;
Doug
Worked like a charm
syedj
Hi
syedj
I have a query
syedj
I want to write django rest api which calls another rest api
syedj
Do we need to use viewset for this?
Rammanoj
syedj
Django rest calling another rest api
cj
Django rest calling another rest api
in the same project? or different projects?
syedj
Different
cj
Different
use requests
syedj
Those rest apis are written y someone
syedj
I want to use djamgo rest to call them
syedj
use requests
I told my manager but he wants to use django rest as it has orm in it
syedj
use requests
I told him the same thing
cj
I told my manager but he wants to use django rest as it has orm in it
change your manager, he doesn't know what he is requesting you
syedj
Lol
syedj
I was convincing him don't know what to do
syedj
That means its not possible the way he wants
cj
if you want to consume another API service, you use requests, theresn't anything magic in the ORM that let you consume other's API service (even if it's written in django or any other framework)
syedj
Can i pm you
cj
no
cj
🙂
syedj
Oh ok
syedj
There is something more to discuss
cj
write here 🙂
syedj
Requirement is like this.. I will write code which will call rest api that will store in database
syedj
Other application will modify that data base and django will consume that database
cj
Requirement is like this.. I will write code which will call rest api that will store in database
use requests to call that api, work with the response you'll get and store to your DB
syedj
Ok will discuss tomorrow
syedj
With him
syedj
Thanks for the response
.
Can i pm you
What is pm?
George
What is pm?
post mortem
George
post meridian
George
private message
syedj
@c0x6A Thanks for help on short notice 😁
syedj
Will ping you if I have more queries
syedj
Hope you won't get irritated
cj
Hope you won't get irritated
don't worry, AngryPenguin already managed it 🙂 just write here in the group, there are many people here to help others
syedj
Ok can that be achieved using any framework like flask
syedj
If we want that to run on server
cj
yes
syedj
yes
Yes for flask?
cj
Yes for flask?
yes for any framework
syedj
Except djangorest
syedj
😁
cj
any
cj
requests doesn't care what is the framework running the API
syedj
I got that
syedj
client -> djangorest ->request api
syedj
Response
.
client -> djangorest ->request api
You can use any library for making request, not only requests
cj
client -> djangorest ->request api
+---------+ +---------+ | your |---requests-->| external| | project |<--response---| API | +---------+ +---------+
Sebuhi
Hello! I was wondering if anyone has experience on building api with django where receives data from machine (low level) parse in send back response using HTTP protocol kind of request and response. Is there any suggestions, anyone has written so far?
syedj
use requests
With django-rest is it possible to use requests api within
syedj
I know its possible with requests api directly
syedj
Im confused still
syedj
Im not able to find any example like that on the Internet