test/apps/util/map_api_key.py

10 lines
343 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', 'hwYsYjgnywj3aNdHc9dLF7hLD3c2-ydDyY4tiawfNA')})
#return JsonResponse({'api_key': get_settings('here_api_key', '')})