mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.8K
active users

#django

78 posts41 participants0 posts today
Jack Linke 🦄<p>I really, really like the django_enum package.</p><p>Imagine Django's TextChoices/IntegerChoices classes, but with the ability to encapsulate any additional information for each choice in one place.</p><p>I don't use it everywhere, but it's super useful in a number of use-cases.</p><p>Here are a few places where I've found django_enum makes things easier. See alt text for more detail about how I use of each of these.</p><p>Check it out: <a href="https://django-enum.readthedocs.io/en/stable/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">django-enum.readthedocs.io/en/</span><span class="invisible">stable/</span></a></p><p>And follow: <span class="h-card" translate="no"><a href="https://fosstodon.org/@bckohan" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>bckohan</span></a></span> </p><p><a href="https://social.jacklinke.com/tags/Django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Django</span></a> <a href="https://social.jacklinke.com/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://social.jacklinke.com/tags/WebDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDev</span></a> <a href="https://social.jacklinke.com/tags/Enums" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Enums</span></a></p>
Oliver Andrich<p>And I succeeded to connect the <span class="h-card" translate="no"><a href="https://social.anoxinon.de/@Codeberg" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>Codeberg</span></a></span> repository to <span class="h-card" translate="no"><a href="https://fosstodon.org/@readthedocs" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>readthedocs</span></a></span>. It works even so I get big ugly warnings, because I don't use the mighty GitHub. Hopefully Codeberg/Forgejo will get the same amount of love as GitHub.</p><p><a href="https://docs.codeberg.org/integrations/read-the-docs/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.codeberg.org/integrations</span><span class="invisible">/read-the-docs/</span></a></p><p><a href="https://social.tchncs.de/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> <a href="https://social.tchncs.de/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a></p>
Oliver Andrich<p>Also learned how to setup testing and PyPI release actions with Forgejo actions on Codeberg.</p><p><a href="https://codeberg.org/oliverandrich/django-solomon/src/branch/main/.forgejo/workflows/release.yml" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/oliverandrich/dja</span><span class="invisible">ngo-solomon/src/branch/main/.forgejo/workflows/release.yml</span></a></p><p><a href="https://social.tchncs.de/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> <a href="https://social.tchncs.de/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a></p>
Oliver Andrich<p>But AI helped me a lot to create consistent commit messages, wrote 95% of the test code, the CHANGELOG and the README. </p><p>The fun part for me and the boring things for the AI. Good deal.</p><p><a href="https://social.tchncs.de/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> <a href="https://social.tchncs.de/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a></p>
Oliver Andrich<p>Applied the finishing touches on my vibe coding project, even so I completely deleted the original code and re-did it from scratch myself.</p><p>Here is django-solomon my take on magic link authentication for Django.</p><p><a href="https://pypi.org/project/django-solomon/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">pypi.org/project/django-solomo</span><span class="invisible">n/</span></a></p><p><a href="https://social.tchncs.de/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> <a href="https://social.tchncs.de/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a></p>
Oliver Andrich<p>I think mjml-python will be my go to html package for my <a href="https://social.tchncs.de/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> projects.</p><p><a href="https://pypi.org/project/mjml-python/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">pypi.org/project/mjml-python/</span><span class="invisible"></span></a></p>
Matt Layman<p>🐍 On Building SaaS with <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> and <a href="https://mastodon.social/tags/Django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Django</span></a>, I built admin pages to make building PDFs for my homeschool app easier to iterate on. <a href="https://www.youtube.com/watch?v=vBUi0juxh3E" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">youtube.com/watch?v=vBUi0juxh3E</span><span class="invisible"></span></a></p>
Carlton Gibson 🇪🇺<p>Nice post from Ben —&nbsp;author of the new CompositePrimaryKeys feature in Django — explaining when you need it, which isn't often likely. 🦄</p><p><a href="https://csirmazbendeguz.github.io/2025/04/15/you-dont-need-composite-primary-keys.html" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">csirmazbendeguz.github.io/2025</span><span class="invisible">/04/15/you-dont-need-composite-primary-keys.html</span></a> <a href="https://fosstodon.org/tags/Django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Django</span></a></p>
Sangeeta Jadoonanan<p>Shoutout to <span class="h-card" translate="no"><a href="https://indieweb.social/@adamghill" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>adamghill</span></a></span> on his 🎷 djazzy 🎷 Django blog post all about Django admin themes!</p><p>Thank you for featuring Dracula 🧛‍♂️ among all those other amazing and creative themes! 😊</p><p>also...screenshots FTW! 👏 💯 🥇</p><p><a href="https://www.djangoproject.com/weblog/2025/apr/18/admin-theme-roundup/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">djangoproject.com/weblog/2025/</span><span class="invisible">apr/18/admin-theme-roundup/</span></a></p><p><a href="https://fosstodon.org/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a></p>
Kevin Bowen :xfce:<p>Happy Friday! </p><p>Successfully dropping the safety package from the <a href="https://fosstodon.org/tags/nox" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nox</span></a> tests in my <a href="https://fosstodon.org/tags/Django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Django</span></a> projects and replacing with pip-audit. <br>I've been un-satisified with the direction the safety package for some time and pip-audit get the vulnerability checking job done for me.</p><p>Feels good to start getting that cleaned up after putting it off for several months.</p><p><a href="https://pypi.org/project/pip-audit/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">pypi.org/project/pip-audit/</span><span class="invisible"></span></a></p><p><a href="https://fosstodon.org/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a></p>
Oliver Andrich<p>Where the agent also shines is for questions like „What can I improve in the project?“ or „Any suggestions to implement the token generation in a more secure way?“ You normally get very detailed responses, that contain mostly valuable and solid advice.</p><p><a href="https://social.tchncs.de/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> <a href="https://social.tchncs.de/tags/pycharm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pycharm</span></a></p>
Oliver Andrich<p>This morning I took a different approach - I implement the logic and let the agent write the test code including some edge cases. The AI chat was used to research some topics. This worked out better, costed less tokens and I finished this in less time. I feel confirmed in my opinion about vibe coding, which I wanted to validate with a complete session.</p><p><a href="https://social.tchncs.de/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> <a href="https://social.tchncs.de/tags/pycharm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pycharm</span></a></p>
adamghill<p>Did you know that the <a href="https://indieweb.social/tags/Django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Django</span></a> admin can be themed?! 🤯 </p><p>Here are 10 packages for the Django admin which can transform it with a Dracula theme, <a href="https://indieweb.social/tags/Bootstrap" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Bootstrap</span></a> <a href="https://indieweb.social/tags/CSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSS</span></a>, <a href="https://indieweb.social/tags/Tailwind" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Tailwind</span></a>, and more!</p><p>Jazz up your Django admin today! 🎷</p><p><a href="https://www.djangoproject.com/weblog/2025/apr/18/admin-theme-roundup/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">djangoproject.com/weblog/2025/</span><span class="invisible">apr/18/admin-theme-roundup/</span></a></p>
Carlton Gibson 🇪🇺<p>There's some tasty looking admin themes strutting their stuff over on the Django blog, thanks to <span class="h-card" translate="no"><a href="https://indieweb.social/@adamghill" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>adamghill</span></a></span> 🤩</p><p><a href="https://www.djangoproject.com/weblog/2025/apr/18/admin-theme-roundup/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">djangoproject.com/weblog/2025/</span><span class="invisible">apr/18/admin-theme-roundup/</span></a> <a href="https://fosstodon.org/tags/Django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Django</span></a></p>
Oliver Andrich<p>Spent some time to reflect the vibe coding session from yesterday with Junie and Claude Code. Looking at the results of the „start from zero and just vibe along“-approach it was a failure. The result was not useable, contained hard to spot errors covered by monkey patched test code.</p><p><a href="https://social.tchncs.de/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> <a href="https://social.tchncs.de/tags/pycharm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pycharm</span></a></p>
Django News<p>📰 New newsletter: Django News - Django 5.2 Fixes, Wagtail Updates &amp; GeoDjango Mapping​ - Apr 18th 2025 </p><p><a href="https://django-news.com/issues/281" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">django-news.com/issues/281</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://mastodon.social/tags/Django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Django</span></a> <a href="https://mastodon.social/tags/DjangoNews" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DjangoNews</span></a></p>
Oliver Andrich<p>Junie did mostly a great job, but where it failed miserabily was, when I asked it to integrate django-templated-email-md. I did a subtle typo and just asked for django-templated-mail-md. The result is, that it created disfunctional code that almost looked like it could work and followed the README of the correct project. But the main import included my typo and to solve the tests, Junie mocked almost everything to run tests successully.</p><p>Just checked, Claude Code did the same.</p><p><a href="https://social.tchncs.de/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> <a href="https://social.tchncs.de/tags/pycharm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pycharm</span></a></p>
Django<p>We’ll be at <span class="h-card" translate="no"><a href="https://fosstodon.org/@pycon" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>pycon</span></a></span> US 2025, and hope to see the <a href="https://fosstodon.org/tags/Django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Django</span></a> community and all our Python friends there ❤️ <a href="https://www.djangoproject.com/weblog/2025/apr/18/see-you-at-pycon-us-in-pittsburgh/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">djangoproject.com/weblog/2025/</span><span class="invisible">apr/18/see-you-at-pycon-us-in-pittsburgh/</span></a></p>
Python Weekly 🐍<p>Django Middleware Explained: A Beginner-Friendly Guide</p><p><a href="https://medium.com/@husseinnaeemsec/django-middleware-explained-a-beginner-friendly-guide-6a52697b3962" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">medium.com/@husseinnaeemsec/dj</span><span class="invisible">ango-middleware-explained-a-beginner-friendly-guide-6a52697b3962</span></a></p><p>Discussions: <a href="https://discu.eu/q/https://medium.com/%40husseinnaeemsec/django-middleware-explained-a-beginner-friendly-guide-6a52697b3962" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discu.eu/q/https://medium.com/</span><span class="invisible">%40husseinnaeemsec/django-middleware-explained-a-beginner-friendly-guide-6a52697b3962</span></a></p><p><a href="https://mastodon.social/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a></p>
Oliver Andrich<p>Done for today. My AI quota is almost used for this month. I did the same tasks over the evening with claude code too. Effectively this experiment costed $15, so it is fair that my monthly quota with Jetbrains is consumed. Jetbrains AI costs $10 on the Pro plan.</p><p>I have to review the docs tomorrow, then I am actually ready to release this library. </p><p><a href="https://social.tchncs.de/tags/django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>django</span></a> <a href="https://social.tchncs.de/tags/pycharm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pycharm</span></a></p>