from django.http import HttpResponsefrom .models import icecream_dbdef icecream_list(request): icecreams = '' for i in range(len(icecream_db)): icecreams += f'{icecream_db[i]["name"]} :: ' return HttpResponse(f'Cписок сортов мороженого: {icecreams}')
123456789