Adding a new datasource requires a few steps.
-
Create a model
Save the model in themodels/
directory. -
Add the model to
admin.py
run `python manage.py makemigrations` and `python manage.py migrate`
-
Create a new
DataSource
class
Create a new class that inherits fromdataingestor/DataSource.py
. This function requires a few implemented functions, of which,load_data
is the more important. -
Create a new management function
Located inmanagement/commands/
. This function should call theload_data()
function in the new DataSource class saved in/dataingestor/
-
Create API to access data