Browse Source

set example app names directly

pull/2157/merge
David Lord 8 years ago
parent
commit
6a8c8c3484
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
  1. 2
      examples/flaskr/flaskr/factory.py
  2. 2
      examples/minitwit/minitwit/minitwit.py
  3. 2
      examples/patterns/largerapp/yourapplication/__init__.py

2
examples/flaskr/flaskr/factory.py

@ -17,7 +17,7 @@ from flaskr.blueprints.flaskr import init_db
def create_app(config=None): def create_app(config=None):
app = Flask(__name__.split('.')[0]) app = Flask('flaskr')
app.config.update(dict( app.config.update(dict(
DATABASE=os.path.join(app.root_path, 'flaskr.db'), DATABASE=os.path.join(app.root_path, 'flaskr.db'),

2
examples/minitwit/minitwit/minitwit.py

@ -25,7 +25,7 @@ DEBUG = True
SECRET_KEY = 'development key' SECRET_KEY = 'development key'
# create our little application :) # create our little application :)
app = Flask(__name__) app = Flask('minitwit')
app.config.from_object(__name__) app.config.from_object(__name__)
app.config.from_envvar('MINITWIT_SETTINGS', silent=True) app.config.from_envvar('MINITWIT_SETTINGS', silent=True)

2
examples/patterns/largerapp/yourapplication/__init__.py

@ -1,4 +1,4 @@
from flask import Flask from flask import Flask
app = Flask(__name__) app = Flask('yourapplication')
import yourapplication.views import yourapplication.views
Loading…
Cancel
Save