Adds the largerapp from the docs as an example
This commit is contained in:
parent
079d752cec
commit
e49b73d2cf
7 changed files with 19 additions and 0 deletions
10
examples/largerapp/setup.py
Normal file
10
examples/largerapp/setup.py
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
from setuptools import setup
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name='yourapplication',
|
||||||
|
packages=['yourapplication'],
|
||||||
|
include_package_data=True,
|
||||||
|
install_requires=[
|
||||||
|
'flask',
|
||||||
|
],
|
||||||
|
)
|
||||||
4
examples/largerapp/yourapplication/__init__.py
Normal file
4
examples/largerapp/yourapplication/__init__.py
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
from flask import Flask
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
import yourapplication.views
|
||||||
0
examples/largerapp/yourapplication/static/style.css
Normal file
0
examples/largerapp/yourapplication/static/style.css
Normal file
0
examples/largerapp/yourapplication/templates/index.html
Normal file
0
examples/largerapp/yourapplication/templates/index.html
Normal file
0
examples/largerapp/yourapplication/templates/layout.html
Normal file
0
examples/largerapp/yourapplication/templates/layout.html
Normal file
0
examples/largerapp/yourapplication/templates/login.html
Normal file
0
examples/largerapp/yourapplication/templates/login.html
Normal file
5
examples/largerapp/yourapplication/views.py
Normal file
5
examples/largerapp/yourapplication/views.py
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
from yourapplication import app
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
def index():
|
||||||
|
return 'Hello World!'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue