DEV Community

Discussion on: Django + React, Redux and JWT

Collapse
 
c_v_ya profile image
Constantine

Glad if it helped!

Well, default admin doesn't work with React, it's a static html rendering. So you could write your own admin panel to interact with React. Or just disable default admin if you don't want/need this functionality. It simply wasn't the scope of my attempt at Django + React and of this article.

Collapse
 
belonesox profile image
Stas Fomin

«Free»/«Nocode» admin panel Django almost generated from Django Model, is
one of the great arguments to use Django for SPA.
And I dont see any alternative to get «free» admin panel
from pure DB model (for example React-Admin from marmalade also need lot of boilerplate code
to work with some DB/Graphql model).

So combination of «free and little ugly» Django Admin panel for all DB objects and some SPA for UI that need good UX looks promising.

And I see stackoverflow.com/questions/496790... that this (JWT auth for admin)
should theoretically work.
But I tried this («copy-paste from SO») and this not worked directly…

May be you, Django Master, can look at this?

Thread Thread
 
c_v_ya profile image
Constantine

😄 I'm far away from the "master", but thank you anyway.

At the first glance that should work, but the Important Note says about naive approach and not really suitable for production. So Idk, maybe it could be used as a base for some better decision. But I'd spend some time to think and try different approaches or use some strong google-fu to find ready-to-go solutions. Because that's an admin interface and you know.. you really want to play it safe rather than quick.

If/When I'll have enough time to test and come up with something I'll sure write about it. But right now I'm kinda short on free time, so ¯\_(ツ)_/¯

Some comments have been hidden by the post's author - find out more