ehmatthes, django-simple-deploy 0.6.5 is out.
This solidifies support for Platform.sh; multiple deployments should work, and it should work if you have multiple orgs as well.
Now the work shifts to implementing an internal plugin model. I'm really looking forward to this phase of work. :)
https://github.com/ehmatthes/django-simple-deploy/blob/main/CHANGELOG.md
nanorepublica, Hey folks,
I have availability for a new client. I specialise in #django as backend and can deal with any frontend. Or if nothing exists I am quite happy to come in a build something from scratch.
I work on a fractional/part-time basis.
Drop me a line or book a call via my site (see my profile)
_chrismay, @nanorepublica I wonder if @jong0uld might have any leads for you.
danielquinn, I've finally finished my new #Django module, "django-cool-urls". You can use it to make sure your site never has another outgoing dead link, or just to convert YouTube embeds into proper <video> tags pointing to local files.
Explanatory blog post: https://danielquinn.org/blog/django-cool-urls/
PyPI: https://pypi.org/project/django-cool-urls/
Source code: https://gitlab.com/danielquinn/django-cool-urls
Docs: https://danielquinn.gitlab.io/django-cool-urls/
It's already in use on my own site, but perhaps someone else will find it useful.
danielquinn, @webology alrighty then! I'm going to give some thought as to how to implement this.
webology, @danielquinn 🎉 yay, and thanks again for writing the tool and sharing. You solved an issue that has annoyed me for over a decade.
sabderemane, I know some folks were interested in adding django-csp to Django, worth to follow this post and give your thoughts if you have any:
https://forum.djangoproject.com/t/adding-csp-support-to-django/31526
benjaoming, @sabderemane great idea! I wrote a response, seems I've missed these discussions. CSP is really important, agreed, so it's maybe important enough to try to make Django do some work here... although I'd worry that it's not possible to switch it on by default because of the overlap with HTTP servers (like Nginx add_header).
felixxm, DjangoCon Europe is coming 🎉 🇪🇸 ! It's time for a family reunion 🤗 😉 buenos días con mis amigos 🍷 🥳 #djangoconeurope #django
benjaoming, @felixxm @jsalvador you should! and try to time it with October 4 :D
sabderemane, @felixxm hahaha, it's a small one! See you in Vigo 😄
lemeteore, #Django Conference \o/ https://2024.djangocon.us/tickets/
adamchainz, 🆙 django-upgrade 1.18.0 is out, with support for Django 5.1 (currently in alpha) and a fixer for the argument rename in CheckConstraint:
https://github.com/adamchainz/django-upgrade?tab=readme-ov-file#django-51
stuartm, @adamchainz I guess it's a good thing that it hasn't needed to fix much for the 5.x releases.
adamchainz, @stuartm Yes it’s nice that Django is stable and reliable, though I’d also be happy to see some more mass-refactorable changes to make things more ergonomic :)
carlton, Got at least one commit into #Django 5.2 ✅ Can put my feet up now 🛋️
mahryekuh,
carlton, @mahryekuh @hvdklauw a pun on the content of the commit.
nanorepublica, 📣 Django apps - a single app
📄 One app to rule them all
🔗 https://softwarecrafts.co.uk/100-words/day-100
#100_words,#django,#django_apps,#single_app
ghickman, @nanorepublica 100 🎉
mblayman, 💡 You've got your #Django web app ready and you're ready to show the world. This article helps you understand the important aspects of making a web app live on the internet. https://www.mattlayman.com/understand-django/deploy-site-live/
offby1, Is it me or is the #Django documentation for project templates uncharacteristically bad?
Like, I have so many questions about how this templating works. Do I get to template filenames? How? Can I include the template as a subdirectory in a repository, or do I need to have it hosted in its own? How about providing one as part of a wheel?
I would love to build a project template into NomNom, so that later worldcons can just “django-admin startapp --template nomnom:basic_template" or something.
phildini, What are the best practices / good project templates for starting a #Django project in 2024? Things that I used to do are cargo-culted in my own brain from 5 years ago, has anyone written a good recent guide?
(🚀 for reach welcome)
tobide, @phildini for a simple starter I recommend https://github.com/oliverandrich/django-startproject (no docker) or https://github.com/jefftriplett/django-startproject (uses docker for local dev), I am currently working on something (https://github.com/Tobi-De/falco) but it's in a somewhat messy state at the moment.
benjaoming, @phildini not a template, but recommending @nanorepublica's post about project structure:
https://indiehackers.social/@nanorepublica/112444161930672848
markwalker, It's been a talking point for ages now, but this week Fabian has found some time to actually make some progress on headless @djangocms
He's even put together this demo project which uses DRF to integrate with django-cms
ben, Would any #Django nerds be willing to chat with me next week about API design?
Specifically JsonResponse, custom json serializers involving like a thousand foreign keys, pagination, DRF. Basically- how to take a very complex schema and render out 100 massive json blobs at a time for core objects. sort of like stripe.
webology, @ben It's a short week for me, but I have an open invite to join my Friday Office hours if you ever want.
I would check out Django Ninja's ModelSchema if you haven't yet https://django-ninja.dev/guides/response/django-pydantic/
They are compelling even if you don't use Ninja to take the edge off of JSON to models and back. The stopgap in their docs is that they assume you know pydantic which is their foundation.
benjaoming, @webology @ben exactly this ⬆️ have a look at some of the performance docs on Pydantic - the core is written in Rust for performance: https://docs.pydantic.dev/latest/why/#performance
djangodenmark, Hello all Django friends 👋
📢 Django Day Copenhagen 2024 will be held on Friday October 4th and the Call for Participation is now open 📢
If you have never given a talk, if your talk idea is completely new, untested or rather whack, our message is the same: START BREWING! 🎷 🛠️ 💡 (or maybe encourage someone else)
CodenameTim, I'm looking for some help running a GitHub organization dedicated to supporting community-maintained third-party #Django packages.
I've written up an introduction here: https://www.better-simple.com/django/2024/05/22/looking-for-help-django-commons/
You can join here: https://github.com/django-commons/membership
hugovk, @sethmlarson @jezdez @CodenameTim Here's a similar thing I've heard about, but on the face of it, EF+Py sounds better than VC+Go :)
https://github.com/stacklok/minder
adamchainz, @CodenameTim Nice one, very nice.
carlton, > Custom tags may now set extra data on the Parser object that will later be made available on the Template instance. Such data may be used, for example, by the template loader, or other template clients.
That looks handy, at least partially 😜
https://docs.djangoproject.com/en/dev/releases/5.1/#templates #Django
carlton, @hvdklauw I’ll make sure to tag you when I post about it 🥳
adamchainz, @carlton good to see the template engine isn’t static.
nanorepublica, #Appreciation for @carlton today. I have recently opened an issue and a PR on his repos and the responses have been of kindness and thoughtfulness to my potential ramblings (especially the issue I raised then closed!)
Keep it up!
#django
carlton, Thanks @nanorepublica 🤗
carlton, Little smile for a #Neapolitan appreciation message 🥰 #TodayInOpenSource #Django
carlton, Time to get testing folks! #Django 💃
https://www.djangoproject.com/weblog/2024/may/22/django-51-alpha-1-released/
benjaoming, @carlton OMG THIS!
> ModelAdmin.list_display now supports using __ lookups to list fields from related models.
djangonews, Django 5.1 alpha 1 released
Django 5.1 alpha 1 is now available. It represents the first stage in the 5.1 release cycle and is an opportunity for you to try out the changes coming in Django 5.1.
Django 5.1 brings a kaleidoscope of improvements which you can read about in the in-development 5.1 release notes.
This alpha milestone marks the feature freeze. The current release schedulecalls for a beta release in about a month and a release candidate about a month from then. We'll only be able to keep this schedule if we get early and often testing from the community. Updates on the release schedule are available on the Django forum.
As with all alpha and beta packages, this is not for production use. But if you'd like to take some of the new features for a spin, or to help find and fix bugs (which should be reported to the issue tracker), you can grab a copy of the alpha package from our downloads page or on PyPI.
The PGP key ID used for this release is Natalia Bidart: 2EE82A8D9470983E.
https://www.djangoproject.com/weblog/2024/may/22/django-51-alpha-1-released/
webology, This is a nice new #Django 5.1 feature. I tend to work on websites that allow all access or no access except for a few marketing/signup pages. https://mastodon.world/@davidfstr/112484705392388791
carlton, Nice little addition just before the #Django 5.1 feature freeze.
carlton, Just on the by. The django-formset package by @jrief needs more attention than it gets.
jrief, @carlton I'm currently working on version 1.5. The final goal is to have library which is as easy to develop with, as with the Django-Admin.
But with a big difference:
A lot of the heavy lifting is done in JavaScript rather than in Python. This gives a much smoother end user experience.
carlton, @jrief sounds cool. I shall follow along. 🎁
nanorepublica, 📣 Exploring HTMX, messages and template partials
📄 Getting Django messages without a reload
🔗 https://softwarecrafts.co.uk/100-words/day-95
#100_words,#django,#django_messages,#template_partials
carlton, (edited ) @nanorepublica the trick for me here would be encapsulating this into a TemplateResponse subclass, so the the rest of your view logic don’t know anything about the messages wiggle. 🤔
(Replied more on the issue https://github.com/carltongibson/django-template-partials/issues/43 👍)