Browse Source

Adds the largerapp from the docs as an example

pull/2131/head
wgwz 8 years ago
parent
commit
e49b73d2cf
  1. 10
      examples/largerapp/setup.py
  2. 4
      examples/largerapp/yourapplication/__init__.py
  3. 0
      examples/largerapp/yourapplication/static/style.css
  4. 0
      examples/largerapp/yourapplication/templates/index.html
  5. 0
      examples/largerapp/yourapplication/templates/layout.html
  6. 0
      examples/largerapp/yourapplication/templates/login.html
  7. 5
      examples/largerapp/yourapplication/views.py

10
examples/largerapp/setup.py

@ -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

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

0
examples/largerapp/yourapplication/static/style.css

0
examples/largerapp/yourapplication/templates/index.html

0
examples/largerapp/yourapplication/templates/layout.html

0
examples/largerapp/yourapplication/templates/login.html

5
examples/largerapp/yourapplication/views.py

@ -0,0 +1,5 @@
from yourapplication import app
@app.route('/')
def index():
return 'Hello World!'
Loading…
Cancel
Save