# What we are doing if we have collision
if snake_x >= 1051 or snake_x <= 209 or snake_y >= 841 or snake_y <= -1:
# starting "game over" loop
finish = True
while finish:
window.fill((0, 0, 0)) ...
text_list = []
for line in some_file:
text_list.append(line)
new_text = Text.objects.create(text=text_list)
def upload_private_chat(request):
fs = FileSystemStorage(location='./media/message_image')
myfile = request.FILES.get('image_message')
print(myfile)
filename = fs.save(myfile.name, myfile)
uploaded_file_url = fs.url(filename)
return HttpResponse( uploaded_file_url)
path('', views.home, name='home_url'),