umarov99

Untitled

Jul 13th, 2021
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. from django.http import HttpResponse
  2. from .models import icecream_db
  3.  
  4.  
  5. def icecream_list(request):
  6. icecreams = icecreams += f'{icecream_db[i]["name"]} :: '
  7. for i in range(len(icecream_db)):
  8. return HttpResponse(f'Список сортов мороженого: {icecreams)
  9.  
Advertisement
Add Comment
Please, Sign In to add comment