Thanks a lot for the super fast response! 🤩
On Fri, 21 Aug 2020, 15:40 RANGA BHARATH JINKA,
wrote:
> Hi,
>
> create a variable like APIKEY = 'value' in settings.py.
> If you want to access that api key in views just use this import "from
> django.conf import settings"
> In views.py:
You add the key to your environment and read it in Django with django
environ or the os module, then you can create a utils.py in the app module
where you need to fetch the data, you create a function(something like
fetch_api) to fetch the data and call it where you need it, you can use the
request
Hi,
create a variable like APIKEY = 'value' in settings.py.
If you want to access that api key in views just use this import "from
django.conf import settings"
In views.py:
api_key = settings.APIKEY
All the best.
On Fri, Aug 21, 2020 at 3:33 PM Ogunsanya Opeyemi <
ogunsanyao
You just need to add define the key in your settings file Key_Name= "key"
OGUNSANYA OPEYEMI
On Fri, Aug 21, 2020 at 10:55 AM Arpana Mehta
wrote:
> Hello everybody,
> I wanted to know if there's anybody who can help me integrate a very
> simple third party API using client ID and secret key.
>
>
Hello everybody,
I wanted to know if there's anybody who can help me integrate a very simple
third party API using client ID and secret key.
I just want to know the basic steps of where to add the key and ID in
settings file so I can access that API from my app in django-project.
*It's kind of ur
5 matches
Mail list logo