forked from orbit-oss/flask
Allow name to be specified as the first parameter but with an explict name.
This commit is contained in:
parent
c9cd6084c2
commit
b4ffa4d9ac
2 changed files with 5 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ from flask import Flask, Module
|
|||
|
||||
mod = Module(__name__)
|
||||
mod2 = Module(__name__, 'testmod2')
|
||||
mod3 = Module(__name__, name='somemod', subdomain='meh')
|
||||
|
||||
app = Flask(__name__)
|
||||
app.register_module(mod)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue