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