Forums

django rest_framework, my own api not working

Hi, I am a free tier pythonanywhere user. In my django app, i have a view that sends req for API using the requests. In the same project in another app, i have the api handler. When using postman, i can get the response as expected using the api endpoint i made. But, when i try to access the api endpoint in my own view, the requests.get() method loads indefinitely. Can anybody help pls...

We need more details to help you. Example code and example urls.