Skip to content

Commit 1137074

Browse files
committed
Use script instead of management command
1 parent a9f05e0 commit 1137074

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

restore.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
echo "==> Removing all data from the database..."
4+
python manage.py flush --noinput
5+
6+
echo "==> Loading user fixtures..."
7+
python manage.py loaddata snippets/fixtures/users.json
8+
9+
echo "==> Done!"

snippets/management/__init__.py

Whitespace-only changes.

snippets/management/commands/__init__.py

Whitespace-only changes.

snippets/management/commands/cleanup.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)