8 ms·
Portable Django
- JazzXP 4y agoWhat a missed opportunity in calling it Django Unchained
- true_religion 4y agoReferences to slavery in America, even references to movies of freed slaves struggling to free others are generally unwelcome. It’s not something most people want to be faced with when they just came for a simple technical discussion.
- deleted 4y ago[deleted]
- teddyh 4y agoSo call it Django ’66.
- lanecwagner 4y agoI found it clever and I welcome it. The history surrounding slavery isn't a taboo subject, what a ridiculous idea. The commenter in no way is condoning slavery.
- leafmeal 4y agoI don't anyone believes that calling it Django Unchained would condone slavery. They're just saying they don't want to have to think about slavery when choosing software which seems not unreasonable to me.
- otabdeveloper4 4y agoUh, yeah, it absolutely is a taboo subject, at least in the USA.
- true_religion 4y agoYep, as a black person in the USA… this sort of reads as: “Remember those times your ancestors were enslaved? Which relates to a history of segregation and oppression so recent that your parents were alive when it was overturned? You must remember it since it’s still championed by secessionists and is the cause of ever present police brutality. Remember that? Well wow, do I have a funny joke for you!” Long story short, there are other jokes that could be made.
- recuter 4y agoReferences to religions as true are generally unwelcome. It's not something most people want to be faced with when they just came for a simple technical discussion.
- JoyfulTurkey 4y agoMaybe they just really like True Religion jeans?
- recuter 4y agoMy fat ass cannot fit into them, stop fat shaming me, I came for the technical discussion.
- true_religion 4y agoWhy, yes I do! So sad they downsized so much that my username is now out of style.
- POPOSYS 4y agoWhat are your facts about what most people want? Did you do some statistical work in this field? It would be interesting to see your results. As a competent HN reader you certainly are basing your view on some facts?
- true_religion 4y agoOh no this is totally just my opinion, and I can only defend it with rhetoric, anecdotes, and common sense logic. Don’t get name wrong, I don’t think the OP meant something malicious and I don’t want to word police in general. It’s just that this joke comes up all the time when Django is mentioned in a crowd. It may have been funny once but now it’s just kind of banal.
- justinator 4y agoOr Django Unplugged, since this Django was a guitarist.
- recuter 4y agoA jazz guitarist, already unplugged. https://www.youtube.com/watch?v=ANArGmr74u4 https://www.youtube.com/watch?v=ANArGmr74u4 And, err.. well, the very namesake of the project to begin with.
- drcongo 4y agoOr even Django the Bastard: https://www.imdb.com/title/tt0064240/ https://www.imdb.com/title/tt0064240/
- iamsanteri 4y agoWhy?
- dNIanGGER 4y ago[dead]
- somethoughts 4y agoPerhaps it could be an effort toward an implementation of Local-First Web Development. [1] [1] https://news.ycombinator.com/item?id=34857435 https://news.ycombinator.com/item?id=34857435
- rytis 4y ago> Just for fun It's mentioned right there
- iamsanteri 4y agoYeah I guess I understood that, but working in Django myself I don’t quite get the point of it. Is it some older lighter version of Django and what for? I think this was more my point.
- ingenieroariel 4y agoAuthor here. In 2007 when Django was starting to get popular there was a website called instantdjango.com where you could go and download a zip that would let you run Django and Python on Windows, with everything configured nicely. I only used that version because it is the official one supported by cosmopolitan, but it is also possible to use newer versions with the same approach, for example Python 3.11 and Django 4: https://github.com/ahgamut/cpython/tree/cosmo-djngo https://github.com/ahgamut/cpython/tree/cosmo-djngo (Website has been updated to point at that one).
- vandahm 4y agoWhy not?
- 4y ago
- 0cf8612b2e1e 4y agoThis seems great. I do not have a clue as to what are the best ways to get a modern Python GUI app running, but I can absolutely slam together a Django application to make a web form. Hugely lower barrier to entry than trying to tackle Electron. Is it efficient or web scale? Probably not, but I will definitely consider this rather than say Gooey.
- robertlf 4y agoAre people still using Django?
- JodieBenitez 4y agoAre people still using a mature, stable, battle-tested framework with tons of third-party resources, great documentation and excellent coverage of many business needs ? Yes, of course.
- jd3 4y agoI've seen this opinion on HN for years, but still don't _really_ understand it. Our cofounder built what is now a $1B+ SaSS company from some cursory SQL knowledge he gained while interning at a hospital in the early 2010's. The entire business is, in essence, a fancy graphical UI around postgres. I've now been writing django at work for five years and still have yet to come across a query builder/orm which is as powerful yet simple in addition to being a breeze to on-board new engineers with. When there are queries that require the use of non-django builtins, it's also relatively easy to use django raw sql or just straight up use the psycopg2 sql.SQL dynamic string composition helpers. With the complexity of some our chained django QueryMethods, the company would have quite literally been impossible to build without django's query builder, at the very least.
- ryanisnan 4y agoThis is a double-edged sword in my opinion. The Django ORM is among my favourite ORMs, but the abstraction (like any) can cause problems over time. At scale, poorly understood ORM-generated queries can be a real pain, especially if your team's SQL skills have atrophied due to over-reliance on the ORM. As an exercise, I'd possibly recommend reviewing your top 1-3 worst performing queries, tracking them back to the ORM, and evaluating how to improve them.
- andybak 4y ago> At scale People often overestimate how often the average website needs to worry about scale. And how easy it is to fix the times you come close.
- deleted 4y ago[deleted]
- leafmeal 4y agoI'm getting the wrong hash when I download the file (I tried a couple times). I'm running curl -O https://djngo.com/djngo.com shasum -a 256 djngo.com and I get 6133a4f5c76af6ca6a2b2eba115783a78fc1721cd384539076884f640b801a26 djngo.com I'm on a M1 Mac. Am I missing something obvious? I tried running it anyway (smart I know) and it failed with zsh: exec format error: ./djngo.com
- jd3 4y agoI also get zsh: exec format error: ./djngo.com on my m1, but it works if I use bash. Do the Cosmopolitan/Blink/αpε hacks only work w/ bash on arm macos? edit: looks like it's a known issue https://github.com/jpe90/hello-cosmo#note-running-with-zsh https://github.com/jpe90/hello-cosmo#note-running-with-zsh
- ingenieroariel 4y agoPlease try again, I just re-ran the deployment and tested on my M1 (OSX): x@m1n1n0 ~> chmod +x djngo.com x@m1n1n0 ~> sha256sum djngo.com 6205984f572575c407ce65502361b554af17584f076076bec7440613459d 1dff djngo.com x@m1n1n0 ~> ./djngo.com extracting blink-darwin-arm64 to /var/folders /fn/4cdpvwcx1wnc53rzl2m0pn_m0000gn/T//.ape-blink-0.9.2 Python 3.6.14+ (Actually Portable Python) [GCC 9.2.0] on cosmo Type "help", "copyright", "credits" or "license" for more information. >>:
- leafmeal 4y agoNow I'm getting a different hash consistently, but not the correct hash: shasum -a 256 djngo.com 071bca4e67bf52dabcd6ec9766189c98ae536c103247549f6801d55dbc0a53ee djngo.com Does the sha256sum command return a different value? It doesn't seem to be installed on my Mac by default.
- ingenieroariel 4y agoThat's the latest one. It is the same as on the website. If you need any help getting started, please join us on the Redbean Discord: https://discord.gg/eHtVmUEB https://discord.gg/eHtVmUEB
- mutagen 4y agoHmm, this has me thinking I could build a single-file executable with a self-contained database or that connects to the server. And with a little work I might be able to launch the system browser pointed at the Djngo. And with this I might have a simple web based replacement for all the Access utilities floating around here? I know about Electron and Tauri and all that but this seems like an intriguing possibility to work on.
- zdragnar 4y agoIf you don't mind Lua, then redbean already has you covered: https://redbean.dev/ https://redbean.dev/
- klausnrooster 4y agoTunney-jart, ape, etc are so impressive... I'd like to see some real competition for Access, at least on Linux and/or BSDs. Because Access is untouchable in it's space. Because it _is_ the space. redbean looks very tasty indeed. If it was the foundation of an 'Access-on-GNU/Linux/BSD' that would be very cool.
- parlortricks 4y agoYou mean Access as in MS Access? Why not give Libre Office Base a try? Seems like an ok alternative
- mutagen 4y agoI really should try redbean. Python / Django is attractive for the batteries included aspect and some uses I had in mind might look for those batteries but a quick search shows some of those are available for Lua so maybe I should get a proof of concept together.
- testTED 4y agohttps://pocketbase.io/ https://pocketbase.io/ ?
- stuaxo 4y agoFantastic -Ive been wanting something like this to see if a project I worked on could be made standalone for a while.
- Nursa90 4y ago[flagged]
- jiffygist 4y agoIs it be possible to create a portable SDL game with cosmopolitan?