Flask skel

This commit is contained in:
Florian Mounier
2013-12-12 15:35:02 +01:00
parent 791a2d25b5
commit f78caab333
51 changed files with 14 additions and 0 deletions

4
app/__init__.py Normal file
View File

@@ -0,0 +1,4 @@
from flask import Flask
app = Flask(__name__)
from . import *

7
app/routes.py Normal file
View File

@@ -0,0 +1,7 @@
from . import app
from flask import render_template
@app.route("/")
def index():
return render_template('index.jinja2')

View File

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

1
requirements.txt Normal file
View File

@@ -0,0 +1 @@
flask

2
run.py Normal file
View File

@@ -0,0 +1,2 @@
from app import app
app.run(debug=True)