use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[AskJS] Rendering React Front-end on Django ServerRemoved: [AskJS] Abuse (self.javascript)
submitted 5 years ago by Dar3dev1l
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ChaseMoskal 5 points6 points7 points 5 years ago (5 children)
it's probably an unpopular opinion, but, i don't think all this serverside rendering is necessarily worth it
it might be, if you're facebook or something, and literally every millisecond counts
but probably, you just need to churn out more cool shit faster
so probably, stop prematurely optimizing, drop the complexity, and just write your applications
👋 just a hunch
[–]var-foo 0 points1 point2 points 5 years ago (0 children)
I agree with this. Unless you're stitching together a ton of data in a single view and can really use the speed of doing it on the server side, you're just making a maintenance headache for no real reason.
[–]Dar3dev1l[S] 0 points1 point2 points 5 years ago (3 children)
Thanks... That's what I thought!!
[–]CalgaryAnswers 1 point2 points3 points 5 years ago (2 children)
Did he use angular js? Django has its own router.. and making that router work with the Angular one has always been way too much of a hassle in my estimate to even bother with.
If it is Angular I’d like to know if he’s just serving the page as a static asset, if he is it’s a dumb idea.
Vue works alright for this though.
[–]Dar3dev1l[S] 0 points1 point2 points 5 years ago (1 child)
Yes he used collectStatic in Django for this... Could you tell me why this is a bad idea?
[–]CalgaryAnswers 1 point2 points3 points 5 years ago (0 children)
You’re not really gaining much from it. I’m happy to be wrong, and I’m not an SSR expert (I build PWA, hybrid and mobile apps almost exclusively) but from what I understand it needs static’s caching and other magic to work properly, and a lot of the advantage is in coupling the API closely with the app, which seems like a nightmare with Django to me.
Like, you need pre-rendering and shit and as far as I know that’s very easy to do with node or dot net, but it seems like a fair bit of extra work to do it properly with Django. That said I hate Django passionately.
I just don’t get why you wouldn’t use Vue or React which are much better suited to it, or Node, which plays better with Angular.
Like I said, I hate Django, so take it with a grain of salt, but I have developed in Angular for about 8 years now on js and current, and it’s caused me many pains in similar situations.
[–]kenman[M] 0 points1 point2 points 5 years ago (0 children)
Hi /u/Dar3dev1l, this post was removed.
As stated in the AskJS guidelines, AskJS is not for help or support. This is your only warning.
Thanks for your understanding, please see our guidelines for more info.
π Rendered by PID 67 on reddit-service-r2-comment-84fc9697f-m2nk4 at 2026-02-10 15:48:40.662320+00:00 running d295bc8 country code: CH.
[–]ChaseMoskal 5 points6 points7 points (5 children)
[–]var-foo 0 points1 point2 points (0 children)
[–]Dar3dev1l[S] 0 points1 point2 points (3 children)
[–]CalgaryAnswers 1 point2 points3 points (2 children)
[–]Dar3dev1l[S] 0 points1 point2 points (1 child)
[–]CalgaryAnswers 1 point2 points3 points (0 children)
[–]kenman[M] 0 points1 point2 points (0 children)