Re: Django Rest Framework: Get Data from an external apis

2018-01-25 Thread Andy
you dont have to define any route when getting data from an external api, just use requests.get('https://api.test.com/consumers') to get your data -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Django Rest Framework: Get Data from an external apis

2018-01-25 Thread Jani Tiainen
Hi, You can't do that. Django URL configs are URLS that are routed to views withing Django and you can't define url that would access external sources. To access external sources you have to do that in your endpoint API to call remote resource, for example by using requests library. On

Django Rest Framework: Get Data from an external apis

2018-01-25 Thread tapha kebe
Hi, i'm trying to get my data from an external api (example: https:api.test.com/consumers). And i would like to know, if i have to build the extenal Api URL in my urls.py like this: url(r'^(?P[0-9]+)$/', views.get, name="get"), or you have any other good idea? Thanks -- You