Git Product home page Git Product logo

Comments (6)

deming7h777 avatar deming7h777 commented on May 27, 2024

Current effort is saved in this PR: #216, but haven't finished yet.
by Hsiao Yi

from genomics-workspace.

deming7h777 avatar deming7h777 commented on May 27, 2024

I think this will be a good way to implement this feature:
https://docs.djangoproject.com/en/1.11/howto/custom-management-commands/
For example, we can implement a command to do something like:
python manage.py add_organism -i config.json
to add an organism (with information written in config.json)

from genomics-workspace.

deming7h777 avatar deming7h777 commented on May 27, 2024

success to make an demo.py for customize django manage.py
step 1. adding the two folder under the specific app (in this case put it in /genomics-workspace/app/)
step 2. remember to make the init.py for each folder that python can make it as the package
step 3. the customize command category must inherit BaseCommand and the function name need to be "handle"

from genomics-workspace.

deming7h777 avatar deming7h777 commented on May 27, 2024

Complete the feature : automatically generate the short_name
Now working on web scraping tutorial and finished the demo part.(scrape the S&P 500 value from bloomberg website, the problem that I have encountered was the bloomberg website rejected my request because it treated me as a robot.
I solve it by using the "fake header" in my script

from genomics-workspace.

deming7h777 avatar deming7h777 commented on May 27, 2024

Complete the whole progress to add database by script, I push to our repo and encounter several issue

  1. Django 1.11.15 has known security vulnerabilities. It suggests that we should update to 1.11.19
  2. it analyzes I import several module which was useless, however I indeed use those package.
  3. To integrate to the CWL project it seems that we need to host the genomics-project to CWL project due to the command we use for "python manage.py" . It will make our CWL really huge so we need to figure it out if there are the other solutions.

from genomics-workspace.

mpoelchau avatar mpoelchau commented on May 27, 2024

Closing in favor of #280.

from genomics-workspace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.