test/apps/util/map_api_key.py

10 lines
275 B
Python

from django.http import JsonResponse
from django.conf import settings
from apps.general.views.settingsmodule import get_settings
def get_api_key(request):
return JsonResponse({'api_key': get_settings('here_api_key', '8hwYsYjgnywj3aNdHc9dLF7hLD3c2%2DydDyY4tiawfNA')})