Skip to content

Commit ba13909

Browse files
committed
Changes
1 parent f361440 commit ba13909

13 files changed

+36
-4
lines changed

Website/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#initialize teh website folder as python package
22
#do not delete
33
#do not edit
4+
#do not touch
45

56
from flask import Flask
67
from .views import views
-7 Bytes
Binary file not shown.
137 Bytes
Binary file not shown.
-7 Bytes
Binary file not shown.

Website/auth.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -415,4 +415,8 @@ def update_roommate():
415415
def update_self():
416416
return render_template("update_self.html")
417417

418-
#--------------------------------------------End Update Self---------------------------------------------------------------------------------------
418+
#--------------------------------------------End Update Self---------------------------------------------------------------------------------------
419+
420+
@auth.route('/404')
421+
def other_page():
422+
return render_template("404.html")

Website/models.py

-2
This file was deleted.

Website/templates/404.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="stylesheet" href="../static/styles/style_main.css">
8+
<title>Page Not Found</title>
9+
</head>
10+
11+
<body>
12+
<!--Copy from here-->
13+
<!-- Header and Navigation Bar-->
14+
15+
<h1>Page Not Found</h1>
16+
17+
18+
<!-- Footer -->
19+
<section id="footer">
20+
<div class="footer container">
21+
<p>Copyright © 2021 SwipeMyRoomie. All rights reserved</p>
22+
</div>
23+
</section>
24+
<!-- End Footer -->
25+
</body>

Website/views.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#do not delete
22
#url end points
33
#store standard routes
4+
#do not touch
45

56
from flask import Blueprint, render_template, url_for, redirect, request
67

Testing/dummy.txt __init__.py

File renamed without changes.

__pycache__/main.cpython-39.pyc

-265 Bytes
Binary file not shown.

main.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#main python
22
#do not delete
3+
#do not touch
34

45

56
from Website import *

requirements.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ Werkzeug==2.0.2
99
wheel==0.37.0
1010
mysqlclient==2.0.3
1111
requests==2.26.0
12-
mysql-connector-python==8.0.26
12+
mysql-connector-python==8.0.26
13+
pytest==6.2.5
14+
coverage==6.1

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)