Skip to content

Commit

Permalink
Using quicksetup for importing using the new mehtd
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Oct 9, 2023
1 parent 9a7f123 commit a9355a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/management/commands/quicksetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def handle(self, *args, **options):
collect_static()

self.stdout.write('Populating the v1 database...')
quickload.populate_db()
#quickload.populate_db()
import_v1()

self.stdout.write('Populating the v2 database...')
import_v2()
Expand All @@ -42,6 +43,10 @@ def handle(self, *args, **options):
self.stdout.write(self.style.SUCCESS('API setup complete.'))


def import_v1() -> None:
"""Import the v1 apps' database models."""
call_command('import', '--dir', 'data/v1')

def import_v2() -> None:
"""Import the v2 apps' database models."""
call_command('import', '--dir', 'data/v2')
Expand Down

0 comments on commit a9355a9

Please sign in to comment.