Skip to content

Commit

Permalink
Move view before test_error views
Browse files Browse the repository at this point in the history
  • Loading branch information
stefdworschak committed Jul 24, 2023
1 parent 3521af7 commit bf4f83b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ def useful_resources(request):
return render(request, "useful-resources.html")


def codeofconduct(request):
"""
A view to show the hackathon code of conduct.
"""
return render(request, 'code-of-conduct.html')


def test_500(request):
response = render(request, '500.html')
response.status_code = 500
Expand All @@ -147,9 +154,3 @@ def test_404(request):
response.status_code = 404
return response


def codeofconduct(request):
"""
A view to show the hackathon code of conduct.
"""
return render(request, 'code-of-conduct.html')

0 comments on commit bf4f83b

Please sign in to comment.