Skip to content

Commit c1913a7

Browse files
committed
add section9
1 parent 034e1b1 commit c1913a7

File tree

7 files changed

+117
-0
lines changed

7 files changed

+117
-0
lines changed

section9/application/Pipfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[[source]]
2+
3+
url = "https://pypi.python.org/simple"
4+
verify_ssl = true
5+
name = "pypi"
6+
7+
8+
[packages]
9+
10+
flask = "*"
11+
12+
13+
[dev-packages]
14+
15+
16+
17+
[requires]
18+
19+
python_version = "3.6"

section9/application/Pipfile.lock

Lines changed: 74 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from flask import Flask
2+
3+
app = Flask(__name__)
4+
app.config.from_object('flask_blog.config')
5+
6+
import flask_blog.views
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DEBUG = True
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!doctype html>
2+
<title>Flask Blog</title>
3+
4+
<a class="navbar-brand" href="/">Flask Blog</a>
5+
<br>
6+
投稿がありません
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from flask import request, redirect, url_for, render_template, flash, session
2+
from flask_blog import app
3+
4+
5+
@app.route('/')
6+
def show_entries():
7+
return render_template('entries/index.html')

section9/application/server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from flask_blog import app
2+
3+
if __name__ == '__main__':
4+
app.run()

0 commit comments

Comments
 (0)