I’ve dug around the internet and can’t find a solution. Please help me lovely people of the internet. In my views.py @login_required def edit_todo(request, pk): usertodo = get_object_or_404(Todo, pk=pk) return HttpResponse(‘test’) In my urls.py urlpatterns = [ … path(‘edit-todo/<int:pk>/’, views.edit_todo, name=’edit-todo’), path(‘test/<int:pk>/’, views.edit_todo, name=’test’), … ] In my template/component that’s included <form hx-encoding="multipart/form-data" hx-post="{% url ..

Read more

that’s my code: string = "ID:abc, NAME:ABC" re.findall("ID:(…)|NAME:(…)", string) butthis code gives me [(‘abc’, ”), (”, ‘ABC’)] while I want to get the results in this form (list): ["abc", "ABC"]. What should I change? I don’t want to split it into two separate lines like re.findall("ID:(…)", string) + re.findall("NAME:(…)", string) Source: Python-3x..

Read more