[Answer]-Django: How do I pass a form's input content from within a same page?

1👍

Simply an answer for this type. If you want to post to same url you are currently now.Try this and chenge def hello(request, name) to def hello(request).

action=""

Otherwise if urls.py

urlpatterns = patterns('app.views',
url(r'^$', view="index", name="app_index"),

)

Try this

action="{% url app_index %}"

As i found, in yours you can apply

action="{% url helloworld:index %}"

Hope this helps

For your answer updated. Try this

<form method="post" action="{% url "index" %}"> 

0👍

You need change this line

<form method="post" action="{% url 'helloworld:hello' %}">

to

<form method="post" action="{% 'helloworld:hello' %}">

Leave a comment