r/django • • May 12 '26

2026 Django Developers Survey

Thumbnail djangoproject.com
40 Upvotes

r/django • • 4h ago

Built a prompt engineering workspace with Django 5 & DRF — how are you handling external LLM latency and streaming?

0 Upvotes

Hey everyone,

Over the past few weeks, I have been building an open prompt workspace and chaining platform called EvokeBase using Django 5 and Django REST Framework (DRF) on the backend, paired with a React 18 + Vite frontend.

Most LLM wrappers in tutorials use FastAPI or Node, but I wanted to explore how far we can push Django 5's modern async capabilities and DRF viewsets for production-ready AI workflows.

Backend Architecture & Stack:

- Framework: Django 5.x + Django REST Framework (DRF)

- Authentication: JWT via djangorestframework-simplejwt (with refresh token rotation and blacklisting)

- Database: SQLite (local dev) / PostgreSQL (production)

- Frontend: React 18, Tailwind CSS, Framer Motion

- Hosting: Vercel (Frontend) + Cloud backend

Key Django Design Patterns Used:

  1. Prompt Template & Variable Schema:

Instead of storing raw text and parsing on every request, we store template metadata and extract {{variable}} slots client-side with debounced regex, passing structured payloads to DRF serializers.

2. Context Injection Pipeline:

Built custom service layers where project-specific tone parameters (target audience, formatting constraints, banned keywords) are automatically merged into the system prompt payload before dispatching to model endpoints.

3. Multi-Model Chaining Logic:

Orchestrated an asynchronous pipeline where Node 1 output (e.g. Gemini extracting structured JSON) feeds directly as typed context into Node 2 (e.g. Claude drafting long-form copy).

Questions for the Django Community:

As the platform scales, I would love to learn from your production experiences:

  1. Handling LLM Latency in DRF: When waiting 3 to 8 seconds for external model APIs (Anthropic/OpenAI/Gemini), do you prefer standard DRF views with Celery + Redis workers, or have you migrated to Django 5 native ASGI async views (StreamingHttpResponse)?
  2. Token Security: For users who bring their own API keys, what is your preferred pattern in Django — field-level encryption with django-cryptography or vault solutions?
  3. Database Versioning: For prompt iteration history, do you prefer django-simple-history or dedicated versioning tables with parent-child foreign keys?

If you would like to test the live UI and responsiveness, you can check it out here:

Live Demo: https://www.evokebase.com

Would love any feedback on the architecture, API design, or Django-specific optimizations!


r/django • • 1d ago

How do you move forward time in the Docker stack

Thumbnail reddit.com
2 Upvotes

r/django • • 1d ago

REST framework Upgrade DRF Auth Kit to 2.0 for a CSRF security fix

5 Upvotes

Hi all, DRF Auth Kit recently got a report of a medium-severity CSRF vulnerability (GHSA-rhm3-f8xp-7wgv). If you use it with cookie authentication, we suggest upgrading to 2.0.0 so the problem can't affect your production.

In detail: before 2.0, JWTCookieAuthentication and TokenCookieAuthentication did no CSRF check. Another page could make a logged-in user's browser send requests as them, like changing their profile, password or MFA settings. With AUTH_COOKIE_SAMESITE = "None", any site could do this. With the default "Lax", a page on a sibling subdomain still could. Requests that use the Authorization header are not affected.

2.0 rejects cookie-authenticated POST/PUT/PATCH/DELETE requests with a 403 unless they come from the same origin or from an origin listed in CSRF_TRUSTED_ORIGINS. Mobile apps and server-side clients don't send these browser headers, so they keep working.

Breaking change for SPAs: if your frontend runs on a different origin than your API (e.g. app.example.com calling api.example.com), add it to your settings or its write requests will get a 403:

CSRF_TRUSTED_ORIGINS = ["https://app.example.com"]

Remember local dev too: localhost:5173 calling localhost:8000 is also a different origin.

CSRF_TRUSTED_ORIGINS += ["http://localhost:5173"]

If your frontend and API share the same origin, no change is needed. You can turn the check off with AUTH_COOKIE_ENFORCE_CSRF = False, but with SameSite=None that brings the vulnerability back.

Full details are in the docs.


r/django • • 1d ago

DSF member of the month - Johannes Maron

Thumbnail djangoproject.com
7 Upvotes

r/django • • 2d ago

2026 Malcolm Tredinnick Memorial Prize awarded to Raffaella Suardini

Thumbnail djangoproject.com
9 Upvotes

r/django • • 2d ago

Templates I'm using a Google translate as an api for my personal project.

0 Upvotes

I'm using a Google translate as an api for my personal project. The issue I find is for a given description the text doesn't always translate its like my ip gets blocked , how do I resolve this , fallback api , I don't want to pay money for external translation api , suggest methods...


r/django • • 2d ago

Free open-source match centre on Django: how would you model match events?

0 Upvotes
Hey. We built OpenMatchroom, a free tool for football clubs (MIT), at Profil Software. Django handles clubs, line-ups and match events, plus a live console that pushes goals, cards and subs to the public page. Branding per club comes from config.

Would you model the events differently? What would you add? Let us know what you think.
https://open-matchroom.profil-software.com/

r/django • • 2d ago

./tools/provision

0 Upvotes

Do i have to use ./tools/provision everytime I open my localhost or is it all right if I don't?


r/django • • 2d ago

Please join us for Day 2 of Wagtail Space 2026!

Thumbnail gallery
1 Upvotes

r/django • • 3d ago

Components Built with Pure Django, CSS, and JS - Self-contained Template

Thumbnail gallery
0 Upvotes

Hi all,

I recently became aware of Django's inclusion_tag and then found a blog post discussing its use in making template components.

This intrigued me, and I had the idea of combining the inclusion_tag with a single Django template, containing all the markup, styles, and behavior. Thus, I created a demo to test these ideas, resulting is an interactive sidebar menu built with pure CSS and JS, powered by Django's inclusion_tag—all without third-party libraries.

I wanted to isolate the component styles to prevent clashes with surrounding elements, and that's when I found inline scoped CSS. I actually managed to style the whole component without using any class selectors (thinking of class names is a pain), thanks to CSS scoping and nesting.

To make the component interactive, I just included an inline vanilla JS script at the bottom.

For me, this project really demonstrates two main ideas: the use of inclusion_tag to create components and the power of modern inline CSS to help create self-contained components.

Of course a component can be built with more than just pure CSS/JS. Tailwind, Bootstrap, Alpine, HTMX, etc. should all work great to create components.

If you're interested, check out the repo here: https://github.com/osmium2259/django_builtin_components_demo.

Curious what you all think about these ideas I've been bouncing around!


r/django • • 3d ago

A question for interviewers: WHAT DO YOU ASK??!!

8 Upvotes

Hello everyone, I'm pretty new to taking interviews for experienced folks. I would like some help or suggestions as to what kind of questions you ask to experienced folks, preferably 2-5 years. I'm curious:

  • should I ask core Python questions?
  • should I ask Django fundamentals?
  • scenario based questions?
  • tricky Python coding questions?
  • CI/CD/Docker questions?
  • Advanced SQL?
  • JavaScript?
  • AI questions?

Can someone help me please? Especially in this AI era, anyone can do everything with the help of AI so how to assess candidates??

PLEASE HELP!!!


r/django • • 3d ago

Wagtail Space 2026 kicks off TODAY!

Thumbnail gallery
8 Upvotes

r/django • • 4d ago

Wagtail Space 2026 is TOMORROW!

Post image
7 Upvotes

r/django • • 4d ago

Looking for a Django project to build? DCR now has a panel wishlist

Thumbnail djangocontrolroom.com
4 Upvotes

It's pretty common to see posts here asking about good ideas for projects to build using Django. A great option to this is to build a new tool that other developers can use.

I've collected a wishlist of panels to build for the Django Control Room (DCR) ecosystem that are great for anyone looking to get started building their own open source Django tools:

https://djangocontrolroom.com/panels/wishlist

Some of these are adequate for beginners (settings panel, pip freeze panel, etc.) Others are much larger efforts. Any of them could become something useful that others can use in their projects.

Feel free to tackle any of those projects, join the discord and discuss ideas, or add your own entries into the wishlist (its powered by github issues)

Django Control Room is both a collection of tools and a framework to build tools right inside the Django admin. You can learn more about the project here:

https://djangocontrolroom.com - main site

https://djangocontrolroom.com/build - skills for agents to facilitate building


r/django • • 5d ago

2027 DSF Board Nominations

Thumbnail djangoproject.com
11 Upvotes

r/django • • 5d ago

Apps I Built a site where user created bots Battle each other.

Thumbnail kilobytechess.com
0 Upvotes

A few years ago, Sebastian Lague ran a challenge where people coded tiny chess bots with a strict size limit. I would have loved to enter, but it was already over. So I built a site, with the help of Claude, where you can create your own bot and battle against anyone else who has made one.

https://kilobytechess.com

A few things explaining how it works:

  1. To write a bot, go to the “How to write a bot” page.
  2. There are seven classes of bot, from fifteen lines of code to an open bot with only a ten-megabyte upload limit.
  3. Each bot gets calibrated by Stockfish.
  4. There is analysis for every game played.
  5. You can watch the games live.

Sebastian's Video


r/django • • 7d ago

Apps I built IoTMag – An IoT Device Management Platform using Django and ESP32

12 Upvotes

Hey everyone!

I've been working on IoTMag, a web-based platform to register, monitor and remotely control IoT devices.

Features:

- Device registration and authentication

- HTTP-based telemetry collection

- Heartbeat and device health monitoring

- Remote device commands

- Centralized management dashboard

- Docker support

Tech Stack: Python, Django, DRF, SQLite, Redis, Docker and ESP32.

GitHub: https://github.com/httpsanjay/IoTMag-Iot-Device-Managemnet-and-Control

I'd appreciate honest feedback and suggestions on the architecture, security and features I could improve.

Thanks!


r/django • • 8d ago

Apps Integrating fingerprint/face door access machine

4 Upvotes

Hey , i have a library application (saas) , how can I take the easiest approach so business can add machines hassle free (easy approach) and integrate with crm so users and access entry according to theirs timings


r/django • • 9d ago

Where do i start my career in Django

14 Upvotes

I've been learning and practising django for over 2 years, along with my CS graduation. Now that I've attained the graduation degree of Bachelors , I'm looking to start my career as a Django dev or at least to be able to work in a Django environment , people who work in jobs in django architecture, what kinda company did you start from and how much package you were given as entry level? Idk where do i start from, feel kinda lost and confused.


r/django • • 9d ago

Django Control Room: Build internal tools inside your admin with your agent

Post image
49 Upvotes

Django Control Room (DCR) is an open source framework for building tooling inside the Django Admin. We've just released some new agent skills that make building new tools as easy as a prompt.

You can prompt your coding agent with something like:

"Build me a Billing Ops tool that lets me see subscriptions and invoices"

Or:

"Build me an A/B testing system"

The new DCR agent skills will use your application context to build a tool in the form of a Django Control Room panel. It obviously won't solve every problem, but it can take you a long way towards building something very useful that is available right inside the Django Admin.

More info at:

- https://djangocontrolroom.com/build

Skills repo:

- https://github.com/django-control-room/skills


r/django • • 9d ago

Wagtail Space Speaker Highlights: Tech talks

Thumbnail gallery
2 Upvotes

r/django • • 8d ago

Views Olivia Wilde - 'Django Unchained' screening in NYC 12/11/2012

Thumbnail gallery
0 Upvotes

r/django • • 10d ago

Channels Typed WebSocket APIs on Django Channels: routing, validation, DRF permissions, AsyncAPI docs and generated clients

17 Upvotes

Hi, I maintain chanx, a library on top of Django Channels. It gives a WebSocket API what DRF gives a REST API. You write one typed handler per message, and it takes care of the rest:

  • Routing by message type. The action field picks the handler, so no more if/elif chain in receive_json.
  • Validation. Every message is a Pydantic model. A bad payload never reaches your handler, and the sender gets a structured error that says which field failed.
  • DRF permissions. Connections are guarded by the permission classes you already have, object permissions included.
  • Push from anywhere. broadcast_event_sync() from a view, a signal or a Celery task, through the channel layer.
  • Topics. Many streams over one socket (discussion:42, notifications:me), each with its own handlers and authorization.
  • AsyncAPI 3.0 docs. A spec and an interactive docs page, built from your handlers, so they can't drift from the code.
  • Generated clients. A typed TypeScript client (React, Vue, Svelte, Solid) or Python client from that spec. Rename a field in Django and the frontend build fails, instead of production.
  • Testing. Communicators that understand your message types, and capture_broadcast_events to check broadcasts without a socket.
  • Type-checked. Strict mypy and pyright, so a wrong message type shows up in your editor.

Other languages. The protocol isn't Python-only anymore. For TypeScript, chanx-js covers both ends: a server for Node (Express, Fastify, Hono, NestJS, Bun, Deno) and the client. For Go, chanx-go has a server and a client. They share the AsyncAPI format and the Redis channel layer with Django, so a Django view can broadcast to connections a Node or Go service holds. If one part of your app ever needs to move, it can move without the clients changing.

If you already work with plain Django Channels and feel the pain of testing consumers and keeping track of every message shape, give it a try. I built it around exactly those inconveniences, from my own time with Channels. If it saves you some time, a star on GitHub or a mention to your team or friends would encourage me a lot to keep improving it. The library is actively maintained and developed, so issues and PRs are very welcome.