Getting Started
This is the official documentation of the forestadmin-agent-django
and forestadmin-agent-flask
Python agents.
After doing the quick start, you should have a development project which is up and running and connected to your main data storage system.
However, you can plug as many data sources as you want into the same agent.
What can I connect to?
Forest Admin collections map to any of those concepts:
ORM models
Endpoints on SaaS providers (by writing a custom data source)
Endpoints on your own API (by writing a custom data source)
Example
Flask / SQLAlchemy
In this example, we import collections from SQLAlchemy ORM.
Django
With the Django agent, the Django datasource is automatically added. If you prefer to add the datasource manually you have to:
In project/settings.py set
FOREST_AUTO_ADD_DJANGO_DATASOURCE = False
to not auto add itAdd a customization function
Reference the customization function in project/settings.py
Add the datasource in the customization function
FOREST_CUSTOMIZE_FUNCTION="path.to.custom.function"
Last updated
Was this helpful?