Step 1: Create Template View
Add container element in your Django template:Step 2: Add JavaScript Initialization
Create a static JavaScript file:Choose what data to sync
An entity is a type of data, such as people, notes, or tasks. People sync automatically where supported. The examples below enable optional notes and tasks withentitiesToSync; choose the types your app needs. Alternatively, omit this prop to use the defaults you choose in dashboard Settings. An explicit selection in code takes precedence over those defaults.
This configures new connections. For other types or accounts that are already connected, see Choose what data to sync.
Step 3: Add Django URL Route
Add route to yoururls.py:
Step 4: Create Django Views
Implement token generation view:Step 5 (Optional): Handle Credential Events
Update the JavaScript to handle events:Step 6: Update CSP
Add tosettings.py: