🚀 Sign up for Permit: https://io.permit.io/langraph-permit
Django has the data. LangGraph coordinates the Ai Agents. Permit gives us the guardrails to ensure data is safe.
In this course, I'll take you step-by-step so you can build Ai Agents with Django, LangGraph, and Permit so you can:
✅ Save user-data with minimal overhead
✅ Talk to the data you or your users care about
✅ Integrate third-party rest API services
✅ Turn any Python functions into tools an Ai Agent can run with queries like 'what are my recent documents?' or 'What new movies are out?'
✅ Chat with Django User data through standard Django queries and without the need for vector embeddings (although you can use them)
✅ Easily switch LLMs to upgrade the effectiveness of your agents
✅ Leverage RBAC (role-based access control) within any Django or Python project
✅ Create a Super(visor) Agent that controls other agents
✅ Lock down access to what a User can or cannot do
✅ Add guardrails to ensure an Agent can't do anything it shouldn't (e.g. create, update, read, search, list, share, or delete any data)
✅ and more.
Topics covered:
➕ Integrating Django with LangGraph for building Ai Agents (it's crazy easy)
➕ Django ORM fundamentals
➕ Django Model design basics with database syncing (migrations)
➕ Django Users & Permission Fundamentals
➕ Creating LangChain tools for LangGraph agents
➕ LangGraph Supervisor Agents
➕ Permit.io RBAC for powerful and granular control over user and Ai Agent access
➕ Multi-agent integration
➕ Django + Jupyter integration for rapid prototyping
➕ LangGraph-based lookups to your Django database
Thanks to Permit for partnering with me on this course.
Sign up for Permit right now: https://permit.io
Code: https://github.com/codingforentrepren...
Chapters:
00:00:00 Welcome
00:02:53 Demo
00:12:34 Create your Django Project
00:17:18 Designing a Database Table in Django
00:27:22 Add New Database Tables with Django ORM
00:35:09 Changing Database Tables with Django Migrations
00:44:40 Django Users and Admin
00:49:56 Interactive Django with Notebooks
00:53:47 Creating and Saving Data in Django
01:04:34 A Django Staff User
01:10:30 Built-in Django Permissions
01:20:17 Django Lookups as Ai Agent Tools
01:33:37 Configure LLM Model with Django
01:43:42 A Django-based LangGraph Agent
01:55:58 Adding Memory to the Agent
02:00:55 Django CRUD with LangGraph Agents
02:15:26 API Client for Ai Movie Discovery Agent
02:25:31 An API-driven Ai Agent
02:36:35 Multi Agent Supervisor with LangGraph
02:45:58 A Case for Guardrails
02:50:38 Crafting Resources & Roles
02:59:05 Integrate Permit.io with our Django Ai Agent
03:06:04 Syncing Django Users to Permit
03:12:06 Get or Create Permit Resources
03:18:36 Creating Roles for Resources
03:20:48 Assigning Roles to Users with Permit.io
03:26:20 Implement RBAC Guardrails for the Ai Agent
03:37:00 Django Instance Level Permissions with Permit.io
03:46:53 Thank you and next steps