Skip to content

Commit 1137074

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

4 files changed

Lines changed: 9 additions & 11 deletions

File tree

β€Ž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)