RE: https://fosstodon.org/@paulox/116102884603308581

A++ content. I was in a call with @mkennedy and @pythonbynight this week, where this topic came up again.

We looked, and I thought Django's package size was 200M bigger than it actually is. Django is only 10.9 MB compressed, which is within ~1 MB of SQLAlchemy, which is kind of impressive to think about.

So running the Django ORM doesn't quite have the same mental tax as I have assumed all of these years.

#Django #Python

@webology @mkennedy @pythonbynight Most of that size is the translations. Strip those and Django is tiny.

@carlton @mkennedy @pythonbynight Going off of memory, I think it was 52M uncompressed, which is not bad at all.

šŸ¤” Maybe someone can third-party make importing the ORM an import + one-liner.

@carlton @mkennedy @pythonbynight

Conceptually, I don't hate this. šŸ¤”

Does it have to be a third-party app? Nope. But it sells the concept a bit better than the normal settings dance.

@webology @mkennedy @pythonbynight I’m sure @radiac could have nanodjango doing that in about five minutes.
@carlton @webology @mkennedy @pythonbynight Yes, nanodjango does that already - define models in a file with app=Django(), then import them into any other script and it'll just work! And you can use nanodjango against the file directly to get migration support, admin etc. I really should write more about this stuff.