add basic starting prompt

This commit is contained in:
Daniel Cronin 2024-10-22 03:18:37 -05:00
parent 74b9afc9da
commit 57d418a4d6
2 changed files with 6 additions and 2 deletions

View File

@ -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">

View File

@ -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")