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
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
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
3 matches
Mail list logo