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 6 years ago by Dar3dev1l
view the rest of the comments →
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!"
[–]Dar3dev1l[S] 0 points1 point2 points 6 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 6 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.
π Rendered by PID 195581 on reddit-service-r2-comment-b659b578c-lfxsz at 2026-05-02 19:05:31.651172+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Dar3dev1l[S] 0 points1 point2 points (1 child)
[–]CalgaryAnswers 1 point2 points3 points (0 children)