Django

ehmatthes,
@ehmatthes@fosstodon.org avatar

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

ehmatthes,
@ehmatthes@fosstodon.org avatar

For anyone curious to follow, this is the main issue tracking plugin work:

https://github.com/ehmatthes/django-simple-deploy/issues/313

nanorepublica,
@nanorepublica@indiehackers.social avatar

Hey folks,

I have availability for a new client. I specialise in 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,
@_chrismay@fosstodon.org avatar

@nanorepublica I wonder if @jong0uld might have any leads for you.

danielquinn,
@danielquinn@mastodon.social avatar

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,
@danielquinn@mastodon.social avatar

@webology alrighty then! I'm going to give some thought as to how to implement this.

webology,
@webology@mastodon.social avatar

@danielquinn 🎉 yay, and thanks again for writing the tool and sharing. You solved an issue that has annoyed me for over a decade.

sabderemane,
@sabderemane@mastodon.social avatar

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,
@benjaoming@social.data.coop avatar

@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,
@felixxm@fosstodon.org avatar

DjangoCon Europe is coming 🎉 🇪🇸 ! It's time for a family reunion 🤗 😉 buenos días con mis amigos 🍷 🥳

benjaoming,
@benjaoming@social.data.coop avatar

@felixxm @jsalvador you should! and try to time it with October 4 :D

sabderemane,
@sabderemane@mastodon.social avatar

@felixxm hahaha, it's a small one! See you in Vigo 😄

lemeteore,
@lemeteore@mastodon.social avatar
adamchainz,
@adamchainz@fosstodon.org avatar

🆙 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,
@stuartm@fosstodon.org avatar

@adamchainz I guess it's a good thing that it hasn't needed to fix much for the 5.x releases.

adamchainz,
@adamchainz@fosstodon.org avatar

@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,
@carlton@fosstodon.org avatar

Got at least one commit into 5.2 ✅ Can put my feet up now 🛋️

https://github.com/django/django/pull/18204

mahryekuh,
@mahryekuh@fosstodon.org avatar
carlton,
@carlton@fosstodon.org avatar

@mahryekuh @hvdklauw a pun on the content of the commit.

nanorepublica,
@nanorepublica@indiehackers.social avatar

📣 Django apps - a single app
📄 One app to rule them all
🔗 https://softwarecrafts.co.uk/100-words/day-100
,,,

ghickman,
@ghickman@mastodon.social avatar

@nanorepublica 100 🎉

mblayman,
@mblayman@mastodon.social avatar

💡 You've got your 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,
@offby1@wandering.shop avatar

Is it me or is the 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.

offby1,
@offby1@wandering.shop avatar
ghickman,
@ghickman@mastodon.social avatar

@offby1 🎉

phildini,
@phildini@wandering.shop avatar

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,
@tobide@fosstodon.org avatar

@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,
@benjaoming@social.data.coop avatar

@phildini not a template, but recommending @nanorepublica's post about project structure:

https://indiehackers.social/@nanorepublica/112444161930672848

markwalker,
@markwalker@fosstodon.org avatar

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

https://github.com/fsbraun/djangocms-rest/tree/main

#django

ben,
@ben@bencarneiro.com avatar

Would any 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,
@webology@mastodon.social avatar

@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,
@benjaoming@social.data.coop avatar

@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,
@djangodenmark@fosstodon.org avatar

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)

https://2024.djangoday.dk/cfp/

CodenameTim,
@CodenameTim@fosstodon.org avatar

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,
@hugovk@mastodon.social avatar

@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,
@adamchainz@fosstodon.org avatar

@CodenameTim Nice one, very nice.

carlton,
@carlton@fosstodon.org avatar

> 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

carlton,
@carlton@fosstodon.org avatar

@hvdklauw I’ll make sure to tag you when I post about it 🥳

adamchainz,
@adamchainz@fosstodon.org avatar

@carlton good to see the template engine isn’t static.

nanorepublica,
@nanorepublica@indiehackers.social avatar

#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,
@carlton@fosstodon.org avatar

Thanks @nanorepublica 🤗

carlton,
@carlton@fosstodon.org avatar

Little smile for a #Neapolitan appreciation message 🥰 #TodayInOpenSource #Django

carlton,
@carlton@fosstodon.org avatar
benjaoming,
@benjaoming@social.data.coop avatar

@carlton OMG THIS!

> ModelAdmin.list_display now supports using __ lookups to list fields from related models.

djangonews,
@djangonews@socialhome.network avatar

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,
@webology@mastodon.social avatar

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,
@carlton@fosstodon.org avatar
simeon, (edited )
@simeon@indiehackers.social avatar

@carlton Oooh, this is very useful! Thx for highlighting it!

carlton,
@carlton@fosstodon.org avatar

Just on the by. The django-formset package by @jrief needs more attention than it gets.

https://github.com/jrief/django-formset

jrief,
@jrief@fosstodon.org avatar

@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,
@carlton@fosstodon.org avatar

@jrief sounds cool. I shall follow along. 🎁

nanorepublica,
@nanorepublica@indiehackers.social avatar

📣 Exploring HTMX, messages and template partials
📄 Getting Django messages without a reload
🔗 https://softwarecrafts.co.uk/100-words/day-95
,,,

carlton, (edited )
@carlton@fosstodon.org avatar

@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 👍)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • django
  • DreamBathrooms
  • magazineikmin
  • everett
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • love
  • khanakhh
  • kavyap
  • tacticalgear
  • GTA5RPClips
  • thenastyranch
  • modclub
  • megavids
  • mdbf
  • normalnudes
  • Durango
  • ethstaker
  • osvaldo12
  • cubers
  • ngwrru68w68
  • tester
  • anitta
  • cisconetworking
  • Leos
  • provamag3
  • JUstTest
  • All magazines