from django.shortcuts import renderfrom icecream.models import icecream_dbfrom anfisa.models import friends_dbdef index(request):icecreams = ''friends = ''for friend in friends_db:friends += f'{friend}<br>'for i in range(len(icecream_db)):icecreams += (f'{icecream_db[i]["name"]}'f'<a href="icecream/{i}/">узнать состав</a><br>')context = {'icecreams': icecreams,'friends': friends,}return render(request, 'homepage/index.html', context)