Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Django Example

This example demonstrates how to use the Forminit SDK with Django.

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Set environment variables:
export FORMINIT_API_KEY="your-api-key"
export FORMINIT_FORM_ID="your-form-id"
  1. Run migrations (creates SQLite database):
python manage.py migrate
  1. Run the development server:
python manage.py runserver
  1. Open http://localhost:8000 in your browser

Features

  • Form submission with Django forms
  • CSRF protection
  • Direct JSON submission API
  • User info tracking (IP, User-Agent, Referer)
  • Django template integration