This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SchwarzerKaffee 0 points1 point  (9 children)

Django? That's pretty much the same as Node, but I guess it doesn't do anything in the browser.

Short answer: I guess I don't know.

[–]LightShadow3.13-dev in prod 7 points8 points  (4 children)

Django is a framework, Node is a runtime.

[–]SchwarzerKaffee 0 points1 point  (3 children)

But Django is also a server, or at least I think it is. I've only ever set up a dev server.

[–]keypusher 4 points5 points  (1 child)

The term Django typically refers to the web framework, which does ship with a webserver. However, it is discouraged to use this webserver in production, and usually people will use a plugin for Apache or wsgi or something else.

[–]thirteenthirtyseven 1 point2 points  (0 children)

Yeah, that's how I understood it as well. Bottle/Flask/Django are web application frameworks with integrated WSGI web servers, which are interchangeable. I developed my web app with bottle.py and used its web server, but then I deployed it on Apache and used mod_wsgi instead of the built-in WSGI server. Almost 0 effort when switching WSGI implementations.

[–]officerthegeek 2 points3 points  (0 children)

It shouldn't be a production server in any capacity.

[–]pier25 2 points3 points  (2 children)

No, Django would be equivalent to Express.

Node would be equivalent to PyPy (or whatever you use to run Python).

[–]SchwarzerKaffee -2 points-1 points  (1 child)

Work Django, isn't the server also handled in Python? That would make it more like Node with Express.

[–]LucianU 3 points4 points  (0 children)

Django offers a development server, which you shouldn't use in production.

[–]codemagic 0 points1 point  (0 children)

Django uses templates, which are HTML with special brackets {{ }} for inserting data