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

@@ -9,6 +9,9 @@ import shutil
app = create_app()
with app.app_context():
print(
"This file will be deleted in CTFd v4.0. Switch to using `python manage.py export_ctf`"
)
backup = export_ctf()
if len(sys.argv) > 1: