Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 668 Bytes

README_add_new_datasource.md

File metadata and controls

18 lines (12 loc) · 668 Bytes

Adding a New Datasource

Adding a new datasource requires a few steps.

  1. Create a model
    Save the model in the models/ directory.

  2. Add the model to admin.py


run `python manage.py makemigrations` and `python manage.py migrate`
  1. Create a new DataSource class
    Create a new class that inherits from dataingestor/DataSource.py. This function requires a few implemented functions, of which, load_data is the more important.

  2. Create a new management function
    Located in management/commands/. This function should call the load_data() function in the new DataSource class saved in /dataingestor/

  3. Create API to access data