Welkin is a Django app to connect to the Welkin Health API.
- Install django-welkin with pip:
pip install django-welkin
- Add django-welkin and django-solo to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
"solo",
'django_welkin',
]
- Include the django-welkin URLconf in your project urls.py like this:
path('welkin/', include('django_welkin.urls')),
-
Run
python manage.py migrate
to create the welkin models. -
Start the development server and visit http://localhost:8000/admin/welkin/configuration/ to and add API secrets to the singleton (you'll need the Admin app enabled).
The sync command will only sync the users who have one of the roles in settings.WELKIN_SYNC_ROLES
.
When set this should be a list containing the roles that are allowed to be synced.
For instance by default this list is:
["health-coach", "physician"]