hrezaeianzadeh / django-screen-listing

1 stars 0 forks source link

data loading in django #3

Open parhamgh2020 opened 8 months ago

parhamgh2020 commented 8 months ago

Is it more efficient to replace the execution of the "sh" script with "load_dummy.py," or would it be preferable to use "django-admin loaddata --format=json" instead?

hrezaeianzadeh commented 8 months ago

I'm not sure but it's easier to run load_dummy.py file from entrypoint .sh that executing another bash on the container and run the django-admin command in the container shell.