Skip to content

Commit 59a0101

Browse files
committed
Create Procfile and fixed some error.
1 parent 18d249a commit 59a0101

File tree

5 files changed

+30
-27
lines changed

5 files changed

+30
-27
lines changed

part2/reverse_flask_reza/Procfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: python run.py

part2/reverse_flask_reza/project/__init__.py

-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ def page_not_found(error):
3030
def server_error(error):
3131
return render_template('500.html'),500
3232

33-
#@app.errorhandler(403)
34-
#def access_forbidden(error):
35-
#return render_template('403.html'),403
36-
3733

3834
if __name__=='__main__':
3935
app.run(debug=True)

part2/reverse_flask_reza/project/templates/403.html

-13
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
3+
<html>
4+
<head>
5+
<title>Reversing string.</title>
6+
<link href="{{ url_for('static', filename='css/main.css') }}" rel="stylesheet">
7+
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
8+
9+
</head>
10+
<div class="container">
11+
12+
<h1>Error 404</h1>
13+
<p><em>Try<a href="{{url_for('index')}}">again.</a></em></p>
14+
15+
</div>
16+
17+
</html>
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
{% extends "index.html" %}
2-
3-
{% block content %}
4-
5-
<div class="error">
1+
<!DOCTYPE html>
62

3+
<html>
4+
<head>
5+
<title>Reversing string.</title>
6+
<link href="{{ url_for('static', filename='css/main.css') }}" rel="stylesheet">
7+
<link href="{{ url_for('static', filename='css/bootstrap.min.css') }}" rel="stylesheet">
8+
9+
</head>
10+
<div class="container">
711
<h1>500</h1>
812
<p>Something is wrong! We are working on it!</p>
9-
<p><em>Return <a href="{{url_for('home')}}">Home.</a></em></p>
10-
11-
</div>
12-
13+
<p><em>Return<a href="{{url_for('home')}}">Home.</a></em></p>
14+
</div>
1315

14-
{% endblock %}
16+
</html>

0 commit comments

Comments
 (0)