test/app/apps/util/map_api_key.py

15 lines
340 B
Python

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