News for hackers. Stuff that matters.
Re:Fast by rick1290 on Thursday July 31, 2025 @01:45PM (#44748125)
whats your setup for the frontend? do you autogen your queries from DRF? do you prefer react headless over django templates?
Re:Fast by bodhi_mind on Thursday July 31, 2025 @02:57PM (#44748896)
If it’s something simple, I’ll use Django template because it’s very easy. Most stuff I work on these days requires more fancy ui so I’ll 100% use react or nextjs for front end (and I’ve be using zustand for state management). I’ll have an api util that uses axios and handles appending a jwt auth header to all requests and use that in my components. I like using Django-all-auth because it makes integrating email/google/microsoft auth really easy out of the box.

DRF is good, ninja is a little more light weight and flexible so it really comes down to the project.