![Takeshi Kanemoto](/assets/img/avatar_default.png)
The commit that fixes PEP-8 errors removed the possibility to import make_app from lodgeit as a shorthand. This breaks lodgeit.wsgi, while manage.py works fine as it imports make_app from lodgeit.application directly. Fix lodgeit.wsgi so that it imports make_app from lodgeit.application instead, making it more consistent with manage.py. Ref: fbb61e9c1d6f4962b43787fbf636339ac9659cbb Change-Id: Ic4dfc118712d2c88886416af0e5ad003b8af017d
10 lines
293 B
Python
10 lines
293 B
Python
# Example lodgeit file
|
|
from lodgeit.application import make_app
|
|
|
|
application = make_app(
|
|
# the path to the database
|
|
dburi='sqlite:////path/to/lodgeit.db',
|
|
# generate with os.urandom(30)
|
|
secret_key='\x05\x82bgI\x99\xaay\xa5o\xef\xac\xa1\x93>Db\x04\xf1\x8b|\x7fT\x87|]LcM\x9d'
|
|
)
|