Skip to content

Commit 583368f

Browse files
committed
Added script to populate database with dummy data
1 parent e8ad3d3 commit 583368f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/populate_db.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import os
2+
import sys
3+
4+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'opensutd.settings')
5+
6+
import django
7+
8+
django.setup()
9+
10+
from projects.models import *
11+
12+
print(Project.objects.all())

0 commit comments

Comments
 (0)