This example demonstrates how to use the Forminit SDK with Django.
- Install dependencies:
pip install -r requirements.txt- Set environment variables:
export FORMINIT_API_KEY="your-api-key"
export FORMINIT_FORM_ID="your-form-id"- Run migrations (creates SQLite database):
python manage.py migrate- Run the development server:
python manage.py runserver- Open http://localhost:8000 in your browser
- Form submission with Django forms
- CSRF protection
- Direct JSON submission API
- User info tracking (IP, User-Agent, Referer)
- Django template integration