mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#django

30 Beiträge25 Beteiligte1 Beitrag heute

Today I made a #Django management tool to scaffold starter models, admins, + tests for tables in an existing database, because I have better things to do than write boilerplate for dozens of tables. Not sure if it's shareable outside of work or even interesting to Django people, but I did it. 🤷‍♂️

Wrapping a #Django project in an electron app and shipping it to windows / macOS running a full data science stack (>1gb .venv) using a bundled relocatable Python interpreter with django-tasks for long running simulations and htmx to be able to show interactive progress. Still baffled that this works at all.
mastodon.world/@shezi/11482174

MastodonJohannes Spielmann (@shezi@mastodon.world)What are the wildest things you do in Django projects? I'll start off and you reply with yours! def as_view(cls): return cls.as_view() @as_view class SomeOfYourViews(View): ...

If I want to go the VPS route but don't want to use Hetzner, what are decent alternatives that are less expensive than DigitalOcean?

And SHOULD I be looking at VPS for #Django?

My goal is to get off of Fly.io.

And while we're at it, if I want to host outside the US, does it matter if the company is US-based vs wherever the server location I select is?

I am working on extending the #Django test framework to include comprehensive performance testing for the open-source project github.com/ibrahim-sisar/EduLi, but hopefully I will #opensource the test extension itself with the name 'Django-Mercury'

This test framework introduced a new class, `DjangoPerformanceTestCase` that automatically tracks the stats of three important things:

1. View response times and memory usage
2. Serializer payload sizes & performance (specific to DRF)
3. Model queries and creations.

New asserts like `assertPerformance`, `assertResponseTimeLess`, `assertMemoryLess`, `assertPerformanceFast`, `assertPerformanceNotSlow` can join your existing test suite, just configure what 'Fast' and 'NotSlow' means in your settings.py!

I am excited to share how it actually works behind the scenes (spolier; I put my newfound C knowledge to use- it's lightning fast!)

#Python#testing#development

Working on translations in Django, for now four languages

What pipeline checks do you use for your projects to check if everything is translated?(or what other checks should we have as well?)

Any cool linters? Bash-bangers? or other cool tricks?

Moin ihr Lieben ☕☕🚬🚬
Die zweite Kanne Kaffee lauft
Der Staubsauger beginnt seinen Job
Und die Vorbereitungen für die #Morgenrunde laufen
#django und ich wünschen euch nen großartigen Start in die Woche
Lasst euch nicht ärgern 😉

#django hat heute bei unserem Rundgang durch die Stadt nen neuen Badeplatz gefunden. Fand er richtig gut
Weniger gut fand er, dass er danach zum #duschen musste 🤣😂🤣
icht wegen dem Badeplatz. hätte er auch so gemußt 😉
Ein entspanntes Wochenende @all
#MastodonDogs #dogsofmastodon #Mastodonrudel #hunde #Leonberger #hund #dog #outdoor #olddogs #OldDog #lovemydog #lebenmithund #großehunde #bigdogs #älterehunde #bigdog #hund #Hitze #hitzetag #dogs #Fellnasen #fotografie #fotosamstag #samsdog