Skip to content

Commit

Permalink
adds arches_component_lab as a dependency #209
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd authored and johnatawnclementawn committed Feb 18, 2025
1 parent 02e1f9d commit 3f9d7fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions arches_lingo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def get_optional_env_variable(var_name, default=None) -> str:
"django.contrib.gis",
"django_hosts",
"arches_controlled_lists",
"arches_component_lab",
"arches_vue_utils",
"arches",
"arches.app.models",
Expand Down
10 changes: 10 additions & 0 deletions import_lingo_example_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import os
import subprocess

data_directory = './tests/fixtures/data'

for filename in os.listdir(data_directory):
file_path = os.path.join(data_directory, filename)
if os.path.isfile(file_path):
command = f'python manage.py packages -o import_business_data -s {file_path} -ow overwrite'
subprocess.run(command, shell=True)

0 comments on commit 3f9d7fe

Please sign in to comment.