mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
* Fix manage.py to work with Flask CLI * Support both the legacy `manage.py` CLI as well as the new `flask` CLI * Closes #2354 * Closes #2352
12 lines
144 B
Python
12 lines
144 B
Python
from flask.cli import FlaskGroup
|
|
|
|
from CTFd import create_app
|
|
|
|
app = create_app()
|
|
|
|
cli = FlaskGroup(app)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
cli()
|