6 ms·
I'm not sure we're moving that far out quite yet. For starters, most of the very big sites that do stuff (PayPal, Ebay, Airbnb, etc) are still mostly request/re
by pbreit 11y ago
I'm not sure we're moving that far out quite yet. For starters, most of the very big sites that do stuff (PayPal, Ebay, Airbnb, etc) are still mostly request/response, which works pretty well.
And even the newer stuff isn't so much Websockets as it is serving JSON to single-page apps.
I've wanted to like Django (because Python is my preferred language) but it still feels so crufty from its origins as a newspaper server.
- civilian 11y ago> but it still feels so crufty from its origins as a newspaper server. Care to elaborate?
- jh3 11y ago"Django was born in the fall of 2003, when the web programmers at the Lawrence Journal-World newspaper, Adrian Holovaty and Simon Willison, began using Python to build applications. It was released publicly under a BSD license in July 2005. The framework was named after guitarist Django Reinhardt." Source: https://en.wikipedia.org/wiki/Django_(web_framework)#History https://en.wikipedia.org/wiki/Django_(web_framework)#History
- servercobra 11y agoRight, but any examples of it feeling crufty? Personally I think the templating system is less and less useful because I'm serving single page apps that I don't really benefit from serving from Django any more (or are Angular and the variable syntaxes conflict with each other)
- ralmidani 11y agoDjango has outgrown its humble beginnings. I am building a fairly sophisticated single-page business application using Django along with Django REST Framework, and have yet to run into a situation that made Django feel "crufty."
- dcgoss 11y agoDjango REST Framework is excellent.
- karkucik 11y agoAnd quite slow
- techdragon 11y agoI can't even begin to imagine what your doing with it that makes you think it's slow. Links or references to documented slowness?
- pbreit 11y agoWell, obviously an SPA would not run into any of the cruftiness since you're just using Django as a "dumb pipe" to the DB.
- ralmidani 11y agoMy point is Django is not limited by the fact that it was initially conceived as a framework for serving static web pages.
- mastazi 11y agoNot all SPAs are based on the DB+"dumb pipe"+SPA stack, sometimes you need to process things on the server, based on your business requirements and/or performance considerations. Sometimes the processing done in that layer can be quite significant. If that is your need, both Django itself (using JsonResponse and serialization objects) and Django REST Framework allow you to do so much more than dumb piping.
- brianwawok 11y agoSo as a Scala Play dev... Trying to get the user stuff to work with email as username and still work on the admin page? Super crufty. Overall very good docs though :)
- deleted 11y ago[deleted]
- pbreit 11y agoOne small but big example: still, or until recently, it was hard to use email addresses as usernames. Usernames are useful for sites with discussion but none other.
- bliti 11y agoall successful software is crufty. django os not perfect but it's a very solid option. the fact that it's taken websockets seriously means that building real time apps became easier.