Build an Ai Agent with Python, Django, LangGraph, and Permit
CodingEntrepreneurs
@codingentrepreneursAbout
Learn, Build, and Earn. Coding Entrepreneurs is here to help you learn the skills you need to build the projects you want. Learn by doing everything we do step-by-step. Practical and hands-on. Let's do this. π½ Code: https://github.com/codingforentrepreneurs π Enroll. Learn to code. Launch your project: https://cfe.sh/enroll π
Video Description
π 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/codingforentrepreneurs/django-ai-agent 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
AI Agent Dev Kit Essentials
AI-recommended products based on this video

Acer Nitro V 16 AI Gaming Laptop, 16" WUXGA 180Hz Display, AMD Ryzen 5 240, GeForce RTX 5050, 16GB DDR5, 512GB SSD, Backlit Keyboard, Copilot, Wi-Fi 6E, Win 11, Black, 1TB Docking Station Set

Monster N-Lite 211 Wireless EarbudsοΌ Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports



















