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 <
ogunsanyaopeye...@gmail.com> wrote:

> 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 <arpana11me...@gmail.com>
> 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.
>>
>> 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 urgent. Any help will be appreciated.*
>> Many thanks,
>> Arpana Mehta
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAGyqUuW-zx8-cfVt0Oq%2B3E9WwcA8w%3DgsKg3xjtC9-vvuR9pHfw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAGyqUuW-zx8-cfVt0Oq%2B3E9WwcA8w%3DgsKg3xjtC9-vvuR9pHfw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABJxPrHhY0pGi9MoEQz7CHcdkFGmdWoz87BtG5Ky4SaQ_dtFFg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CABJxPrHhY0pGi9MoEQz7CHcdkFGmdWoz87BtG5Ky4SaQ_dtFFg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316arXyCUwcvvjRzRVv3-xAAvttCRUgmv6AqkqJ6dCuSWw%40mail.gmail.com.

Reply via email to