-
-
Notifications
You must be signed in to change notification settings - Fork 16.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ASK_APP Handle app factory with arguments in FLASK_APP
- Loading branch information
Showing
3 changed files
with
113 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from __future__ import absolute_import, print_function | ||
|
||
from flask import Flask | ||
|
||
|
||
def create_app(): | ||
return Flask('create_app') | ||
|
||
|
||
def create_app2(foo, bar): | ||
return Flask("_".join(['create_app2', foo, bar])) | ||
|
||
|
||
def create_app3(foo, bar, script_info): | ||
return Flask("_".join(['create_app3', foo, bar])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters