add basic starting prompt
This commit is contained in:
parent
74b9afc9da
commit
57d418a4d6
@ -19,8 +19,12 @@
|
|||||||
|
|
||||||
{% if request.method == "POST" %}
|
{% if request.method == "POST" %}
|
||||||
{{ response|safe }}
|
{{ response|safe }}
|
||||||
|
{% else %}
|
||||||
|
{{ response|safe }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
<input type="submit" value="Submit">
|
<input type="submit" value="Submit">
|
||||||
|
@ -18,7 +18,7 @@ def home(request):
|
|||||||
return render(request, 'home.html', {'form': form, 'response': response})
|
return render(request, 'home.html', {'form': form, 'response': response})
|
||||||
else:
|
else:
|
||||||
form = Statement()
|
form = Statement()
|
||||||
return render(request, 'home.html', {'form': form})
|
return render(request, 'home.html', {'form': form, 'response': 'Enter some basic data to begin:'})
|
||||||
|
|
||||||
def about(request):
|
def about(request):
|
||||||
return HttpResponse("This is the about page")
|
return HttpResponse("This is the about page")
|
||||||
|
Loading…
Reference in New Issue
Block a user