Modified views with the change of file names of the error message

parent 5a10a3ca
{% comment %} {% extends 'boodlesite\templates\base.html' %} {% endcomment %}
{% load static %}
{% block title %}{% endblock %}
{% block styles %}
{% endblock %}
{% block content %}
<h1>This auction has not started</h1>
<a href="/">Back to Home</a>
{% endblock %}
...@@ -72,9 +72,9 @@ def auction(request, pk): ...@@ -72,9 +72,9 @@ def auction(request, pk):
return HttpResponse("This auction has already passed.") return HttpResponse("This auction has already passed.")
elif auction.auctionstart > datetime.now(): elif auction.auctionstart > datetime.now():
#return HttpResponse("This auction has not yet started.") #return HttpResponse("This auction has not yet started.")
return render(request, "boodlesite/templates/error404.html") return render(request, "boodlesite/templates/error404/notstarted_error404.html")
else: else:
return render(request, "boodlesite/templates/auction.html",context) return render(request, "boodlesite/templates/auction.html",context)
def error404(request): def error404(request):
return render(request, "boodlesite/templates/error404.html") return render(request, "boodlesite/templates/error404/notstarted_error404.html")
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment