diff --git a/boofilsic/settings.py b/boofilsic/settings.py index 6393f4a0..0a231414 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os +import requests import psycopg2.extensions from git import Repo @@ -299,7 +300,8 @@ GOOGLE_API_KEY = 'deadbeef-deadbeef-deadbeef' # IGDB IGDB_CLIENT_ID = 'deadbeef' -IGDB_ACCESS_TOKEN = 'deadbeef' +IGDB_CLIENT_SECRET = 'deadbeef' +IGDB_ACCESS_TOKEN = requests.post(f'https://id.twitch.tv/oauth2/token?client_id={IGDB_CLIENT_ID}&client_secret={IGDB_CLIENT_SECRET}&grant_type=client_credentials').json()['access_token'] # Thumbnail setting # It is possible to optimize the image size even more: https://easy-thumbnails.readthedocs.io/en/latest/ref/optimize/