Developers
Django: quickstart
Install and first-use steps for sending events to Feralin with Django. Code samples come from the SDK's own README and statuses from the capability record.
Install
feralin-django 0.1.0 is published on PyPI; install it with your package manager using the command below.
pip install ./sdks/python ./sdks/python-djangoFirst use
# settings.py
MIDDLEWARE = [..., "feralin_django.FeralinMiddleware"]
FERALIN = {
"PROJECT_KEY": os.environ["FERALIN_PROJECT_KEY"], # yalnız pk_ anahtarı
"COLLECT_URL": "https://collect.example.com",
"CONSENT_RESOLVER": "uygulama.feralin.izin",
}
# uygulama/feralin.py
from feralin import Consent
def izin(request):
return Consent(analytics=request.COOKIES.get("izin") == "evet")
# views.py
def siparis(request):
request.feralin.track("order_completed", {"order_id": "ord_1"})
return HttpResponse(status=201)Code samples are taken as they are from sdks/python-django/README.md; comments inside may be in Turkish. You create the project key in the dashboard.
Capabilities
| Capability | Status |
|---|---|
| Event sending | Supported |
| Batch sending | Partial |
| Consent handling | Supported |
| Identity | Supported |
| Attribution | Not applicable |
| Deep links | Not applicable |
| Revenue | Partial |
| Error capture | Partial |
| Session replay | Not applicable |
| Tracing | Planned |
Verification chain
| Link | Status |
|---|---|
| Source | Passed |
| Build | Passed |
| Test | Passed |
| Registry publication | Passed |
| Clean install | Passed |
| Event receipt | Passed |
| Documentation | Passed |
| Super Admin proof | Not started |
Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.