🚀 Feature Friday: Database-computed default values in Django!
Did you know about db_default field attribute that recently landed in Django 5.0 ?
This feature allows the database to calculate the default values of your model fields. 🧵 (1/3)
🚀 Feature Friday: Database-computed default values in Django!
Did you know about db_default field attribute that recently landed in Django 5.0 ?
This feature allows the database to calculate the default values of your model fields. 🧵 (1/3)
🚀 Feature Friday: Simplified templates for form field rendering !
Django 5.0 introduced a field group and field group templates, simplifying the rendering of related form field elements like labels, widgets, help text, and errors.
🧵 (1/2)
Hey #django friends! I'm almost done with a small utility and I wanted to see what y'all think of it before I release it. https://github.com/kennethlove/django-migrator is the repository and currently the only way to install it.
It adds three management commands:
- `reset_database` which drops all tables and runs migrations
- `redo_migration` which reverts and applies the last migration (this takes an optional app name)
- `revert_migration` which reverts 1+ migrations, also optionally for an app
I think they're handy tools, especially early in development.
Thanks for reading and looking!
Gah! That took longer than I thought. I'm exhausted. 😅
This month's Stack Report is going out now. A free-access edition giving my far-too-long thoughts on how we can Evolve Django's auth.User.
https://buttondown.com/carlton/archive/evolving-djangos-authuser/ #Django #TheStackReport
🚀 Feature Friday: This new testing feature is available for Python 3.12+ users with Django 5.0+ ⏰
With "test --durations", you can quickly find the slowest tests in your project, letting you optimize things where they'll have the most impact.
The #Django community is one that opens doors and welcomes people in. This wouldn't be possible without our opportunity grant sponsor, the @django. Thank you Django Software Foundation for helping make #DjangoConUS accessible to more folks!
Don't forget!!!
#DjangoConUS is kicking off in a couple weeks!
Get your tickets: https://ti.to/defna/djangocon-us-2024
I don't think I've ever been so eager to speak at a conference, or as excited by the lineup of other speakers.
It's going to be a great time for people at *all* levels of experience, so don't miss out. I hope to see y'all there 🤩
#Django #DjangoCon #Python #Webdev #Software #OSS #FreeSoftware #Events #Tech #Internet #SoftwareEngineering #Programming #WebApp #OpenSource #Technology #Fun
An experiment in mentoring maintainers. 👨🔬
> There’s a gap between making your first open source contributions, and then going on to pick up the role of a package maintainer.
If you’re e.g. a PyLady or a Django Girl (or … ) in the Django community and you want to get into package maintenance, do reach out.
https://noumenal.es/posts/mentoring-maintainers/6WB/
#PyLadies #DjangoGirls #Django
(Updated the post with the link to the discussion group.)
🚀 Feature Friday: Unique constraints with null values!
Have you ever had a Model field that you wanted to be optional, but unique if it was present?
Django 5.0's new nulls_distinct attribute now allows you to do this!
🧵 (1/3)
#Django #DjangoFeatureFriday
🎉 Feature Friday: Django's Database-Generated Fields!
Need DB-generated values in your Django models? Meet the new GeneratedField!
Define fields with values created by the database, not Django. Powerful for computed columns & more.
DB-generated fields can be used for the following use cases:
• Computed columns
• Default values from DB functions
• Auto-updating timestamps
🧵 (1/2)
#Django #DjangoFeatureFriday
Here's a small sample code showing the usage of GeneratedField:
Happy Friday Djangonauts! Did you know you can still buy tickets to #DjangoConUS?
Get them here: https://ti.to/defna/djangocon-us-2024
You can also submit your nominations for this year's Malcolm Tredinnick Memorial prize!
https://www.djangoproject.com/weblog/2024/sep/16/nominate-a-djangonaut-for-2024-malcolm-prize/
The DSF board election is close to ending. Please don't forget to submit your nomination!
I'd love to see a diverse board this election! People from each continent, different genders, different cultures. To make that happen, I'm offering my help to review personal statement if you believe that you would contribute to make the board more diverse.
https://www.djangoproject.com/weblog/2024/sep/25/2025-dsf-board-nominations/
PSA for #DjangoCon attendees...
You can make a huge difference by volunteering! It's a big part of the success of DjangoCon.
There are still volunteer opportunities for:
- Registration Desk
- Session Chairs*
- Health & Safety Check-in
- Online Moderators
- Swag Bag Stuffing (if in area on Sunday)
* Session Chair involves making sure the speakers are mic'd and have everything they need, and give them an intro if they desire. It's really pretty fun!
The DjangoCon US 2024 has just ended, with a huge round of applause for all the organizers. 👏
Thanks to everyone who contributed to this great edition, where I had the honor of giving a talk. 🤗
CC @djangocon
#DjangoCon #Django #Conference #DjangoConUS #DjangoConUS2024
OK, @CodenameTim had a super idea: We’re going to do a package maintainers open space @djangocon. If you’re a maintainer in the @django ecosystem (or you want to be) and you’ll be there, look out for that. We can share our woes, and joys of course, and plans, and hopes. 🤗 #Django #djangocon #DjangoconUS
Rise and shine! ☕️
We've been hard at work making stickers for #DjangoConUS!!!
We made this bonus sticker for all our lovely Djangoristas out there! ❤️
These stickers are more caffeinated than a Trenta cold brew with 4 espresso shots and a mocha drizzle! 💥
To see all our stickers, visit https://djangostickers.com and sign up for our mailing list to get updates! 🦄 ✨
The ponies have arrived!!! 🦄 🔥
Check out our snazzy sticker packs for #DjangoConUS!
You can grab one in person after my ⚡️ quick ⚡️ lightning talk!
If you can't make it (like @adamghill!) visit https://djangostickers.com for more info and be sure to sign up for our mailing list! 💌
See you all at @djangocon! 👋
🚀 Feature Friday: QuerySet.prefetch_related() supports GenericForeignKey for Django 5.0 and above!
This seemingly minor change might be a big win for performance in your django projects. Let’s see how 👇
#Django #DjangoFeatureFriday
🧵 (1/3)
🚀 Feature Friday: Django 4.2 introduced a major feature, Comments on columns and tables. This powerful addition enhances database schema documentation right in your models. 🗂️💬
#Django #DjangoFeatureFriday
🧵 (1/3)
#django developers in Nigeria – do you have any local events to suggest for us to showcase on our local communtiy page? https://www.djangoproject.com/community/local/
Hey #Django community! New face here. 👋 I'm working on this open-source project called #DjangoLedger. It's all about bringing accounting to our favorite framework. Excited to share updates and maybe learn a thing or two from you all. Any other folks mixing finance and code? Looking forward to connecting! If you got the chance, help the project reach 1k+ ✨ on GitHub!
On stage at the Google Summer of Code Mentor Summit: mentor @laymonage showcases the work of Shafiya Adzhani. Shafiya’s project directly followed from Sage’s cross-DB JSONField work back in 2019 🎉
This year’s #gsoc marks 19 years of #Django participating in the program ❤️
I've been having thoughts on to facilitate concerns, thoughts and questions from a maintainer to users. Right now, I'm thinking we could solve this partially with a package that injects common news somewhere into your development workflow.
I'd love to hear folks thoughts on this. I suspect many people have had thought about this in the past, so any insights are appreciated.
https://github.com/orgs/django-commons/discussions/61 #Django
Today during @webology 's office hours I was inspired by an idea from @alexgmin and made this: https://pypi.org/project/django_wplogin/
It's an enhancement for #Django 's admin login page, inspired by best practices found in other frameworks. If you try it let me know what you think 🙃
In case you missed it yesterday, my co-maintainer/co-conspirator @alexgmin and I released https://pypi.org/project/django_wplogin/, a Django plugin to enhance the admin login page, inspired by wordpress.