Add import export commands to manage.py (#1723)

* Add `import_ctf` and `export_ctf` commands to `manage.py`
* Deprecate `import.py` and `export.py`
* Works on #1629
This commit is contained in:
Kevin Chung
2020-11-16 20:24:42 -05:00
committed by GitHub
parent 1e9c0b43b1
commit 66ff9c0b91
3 changed files with 41 additions and 5 deletions

View File

@@ -8,4 +8,7 @@ import sys
app = create_app()
with app.app_context():
print(
"This file will be deleted in CTFd v4.0. Switch to using `python manage.py import_ctf`"
)
import_ctf(sys.argv[1])