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