Repository navigation
[CI] (22322bc) django/django3-saas - #3636
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
wizard-ci-bot[bot] wants to merge 1 commit into
Conversation
Author
PR Evaluation ReportSummaryThis PR integrates PostHog into a Django 3 SaaS application by adding the
Confidence score: 5/5 🧙
File changes
App sanity check ✅
IssuesNo issues.
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog added to requirements.txt |
| PostHog client initialized | Yes | Posthog() constructor in AccountsConfig.ready() with enable_exception_autocapture=True; atexit.register(posthog_client.shutdown) ensures flush on exit |
| capture() | Yes | 13 meaningful capture calls across accounts, billing, and dashboard views |
| identify() | N/A | Server-only app; middleware + user_logged_in signal handle identity correctly |
| Error tracking | Yes | enable_exception_autocapture=True on client init; middleware captures exceptions by default |
| Reverse proxy | N/A | Server-only app |
Issues
No issues.
Other completed criteria
- API key loaded from
POSTHOG_PROJECT_TOKENenvironment variable via Django settings - Host correctly configured from
POSTHOG_HOSTenvironment variable PosthogContextMiddlewareplaced afterAuthenticationMiddlewareas documentedPOSTHOG_MW_CLIENTsetting correctly passes the instance-based client to the middleware (verified in SDK source)user_logged_insignal correctly callsidentify_context()to fix the ambient context during login requests, per Django docs- Person properties set via
posthog_client.set()(correct method — Python SDK has noidentify()) atexit.register(posthog_client.shutdown)ensures event flush on process exit
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
accounts/views.py |
user_logged_in, user_logged_out, user_registered, account_settings_updated |
Core auth lifecycle events with login_method/registration_method properties |
billing/views.py |
subscription_checkout_started, subscription_started, subscription_plan_changed, subscription_canceled, subscription_payment_failed |
Full billing funnel with billing_interval and payment_provider properties |
dashboard/views.py |
project_created, project_updated, project_deleted |
Project CRUD events with is_active property |
accounts/apps.py |
capturedException (via autocapture) |
Exception autocapture enabled; person properties set on login via set() |
Issues
No issues.
Other completed criteria
- Events represent real user actions mapping to actual product flows (auth → subscription → project management)
- Events enable product insights: registration-to-subscription funnel, churn analysis via
subscription_canceled, payment failure tracking - Events include relevant properties (
billing_interval,payment_provider,login_method,is_active) - No PII in event
propertiesdicts — person data correctly placed inset()call - Event names follow consistent
snake_case[noun]_[verb]convention
Reviewed by wizard workbench PR evaluator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated wizard CI run
Source: wizard-pr
Trigger ID:
22322bcApp:
django/django3-saasApp directory:
apps/django/django3-saasWorkbench branch:
wizard-ci-22322bc-django-django3-saasWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-08-28T19:13:07.632Z
Duration: 492.3s
YARA Scanner