-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scripting access of django databases #259
Comments
Current effort is saved in this PR: #216, but haven't finished yet. |
I think this will be a good way to implement this feature: |
success to make an demo.py for customize django manage.py |
Complete the feature : automatically generate the short_name |
Complete the whole progress to add database by script, I push to our repo and encounter several issue
|
Closing in favor of #280. |
Like we discussed today, perhaps we don't need to have APIs.
Here are some possible options. I would update if I have more information:
1.using python manage.py shell < myscript.py: https://stackoverflow.com/a/16853799/5363040
2.using RunScript of django-extensions.
See an example here: https://github.com/django-extensions/django-extensions/blob/master/docs/runscript.rst.
The underlying mechanism is the same as 1, but based on a python package.
3.use loaddata, dumpdata of django commands: https://www.creativesoftware.com/blog/8-useful-django-dumpdata-and-loaddata-commands. It's the mechanisms used by Han Lin before and there are lots of scripts/command weren't maintained for a long time: https://github.com/NAL-i5K/genomics-workspace/tree/e9d355bc51118d3f7a4b56b94717d740853bf6f6/util.
django customize manage.py command :https://docs.djangoproject.com/en/1.11/howto/custom-management-commands/
The text was updated successfully, but these errors were encountered: