Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Boodle
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martina Therese R. Reyes
Boodle
Commits
8aa16989
Commit
8aa16989
authored
Apr 03, 2022
by
Martina Therese R. Reyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified views with the change of file names of the error message
parent
5a10a3ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
+2
-17
error404.html
boodlesite/templates/error404.html
+0
-15
views.py
main/views.py
+2
-2
No files found.
boodlesite/templates/error404.html
deleted
100644 → 0
View file @
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 %}
main/views.py
View file @
8aa16989
...
...
@@ -72,9 +72,9 @@ def auction(request, pk):
return
HttpResponse
(
"This auction has already passed."
)
elif
auction
.
auctionstart
>
datetime
.
now
():
#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
:
return
render
(
request
,
"boodlesite/templates/auction.html"
,
context
)
def
error404
(
request
):
return
render
(
request
,
"boodlesite/templates/error404.html"
)
\ No newline at end of file
return
render
(
request
,
"boodlesite/templates/error404/notstarted_error404.html"
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment