Written version of this tutorial - https://posthog.com/tutorials/django-...
More tutorials - https://posthog.com/tutorials
Questions? - https://posthog.com/questions
Get signup for PostHog for free - https://app.posthog.com/signup
In this tutorial, we build a basic Django app, add PostHog to it, and set up PostHog features like custom event capture, feature flags, session recordings, user identification, and more.
Subscribe for more - https://www.youtube.com/@PostHog?sub_...
Follow us on Twitter - / posthog
Chapters:
0:00 Intro
0:28 Creating virtual environment and install Django
1:25 Creating the Django project
2:23 Creating the Django app
3:50 Adding a model
5:46 Admin setup and adding a blog post
7:37 Creating the post list view and template
10:12 Creating a route and setting up URLs
11:32 Adding the PostHog snippet
12:57 Installing the PostHog Python library
14:10 Custom event capture
16:31 Identifying (aliasing) users
20:28 Setting up feature flags
23:30 Outro