11 lines
435 B
Python
11 lines
435 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):
|
|
print(get_settings('here_api_key', '8hwYsYjgnywj3aNdHc9dLF7hLD3c2%2DydDyY4tiawfNA'))
|
|
return JsonResponse({'api_key': get_settings('here_api_key', '8hwYsYjgnywj3aNdHc9dLF7hLD3c2%2DydDyY4tiawfNA')})
|
|
#return JsonResponse({'api_key': get_settings('here_api_key', '')})
|