Skip Navigation
Django Classy Docs [for django.db.models]

Via https://mastodon.social/@EmmaDelescolle/112650193871139643

0
New Pythörhead release v0.25.2
github.com Release v0.25.2 · db0/pythorhead

Version 0.25.2 What's Changed support python 3.12 by @stenius in #101 New Contributors @stenius made their first contribution in #101 Full Changelog: v0.25.1...v0.25.2

Release v0.25.2 · db0/pythorhead
0
radiac/nanodjango: Run Django models and views from a single file, and convert it to a full project.
github.com GitHub - radiac/nanodjango: Run Django models and views from a single file, and convert it to a full project.

Run Django models and views from a single file, and convert it to a full project. - radiac/nanodjango

GitHub - radiac/nanodjango: Run Django models and views from a single file, and convert it to a full project.

Via https://mastodon.cloud/@radiac/112641898082821618

> In my experience flask is great until it isn't - I've seen quite a few projects which outgrew it, and the lack of django's batteries and guard rails left a maintenance nightmare. Not sure if it'll be helpful, but as a result I wrote nanodjango, which lets you write a django site in a single file, then convert it to a full project if you outgrow it.

2
DEFNA | DjangoCon US: Call for Venue Proposal 2025
www.defna.org Django Events Foundation North America | DjangoCon US: Call for Venue Proposal 2025

We’re in the middle of planning DjangoCon US 2024, so it’s time to think about 2025! Where will we be next year? We need your help in making that decision!

DEFNA: Django Events Foundation North America

Via Django News #238

0
Rounding Numbers in Python – Real Python
realpython.com Rounding Numbers in Python – Real Python

In this video course, you'll learn about the mistakes you might make when rounding numbers and how to best manage or avoid them. It's a great place to start for the early to intermediate Python developer who's interested in using Python for finance, data science, or scientific computing.

Rounding Numbers in Python – Real Python

Via https://fosstodon.org/@realpython/112637986952324365

0
Featured
Welcome to c/Python!
  • Hey Ulrik, apologies for not responding sooner.

    I'm more than happy to talk about adding one (or more!) mods for any of the communities I mod for right now, including c/python. I have at least one person in mind, who has been pretty active both in c/python and c/django. I'd also like to talk more about mod expectations, particularly with regard to reported posts/comments.

  • [Accepted] Django Enhancement Proposal 14: Background Workers
  • That's the way I read the proposal, which I definitely like.

  • Optimal SQLite settings for Django
    gcollazo.com Optimal SQLite settings for Django

    Requires: Django >= 5.1a1 (currently in alpha)Last updated: 2024-06-12 There’s plenty of information out there on how to scale Django to handle numerous requests per second, but most of it…

    Optimal SQLite settings for Django

    Via https://mastodon.social/@gcollazo/112606165516489513

    0
    [Accepted] Django Enhancement Proposal 14: Background Workers
    www.djangoproject.com Django Enhancement Proposal 14: Background Workers

    Posted by Benjamin Balder Bach, Cory Zue, Carlton Gibson on May 29, 2024

    Django Enhancement Proposal 14: Background Workers

    DEP-0014: https://github.com/django/deps/blob/main/accepted/0014-background-workers.rst Reference implementation: https://github.com/RealOrangeOne/django-tasks Author: https://mastodon.theorangeone.net/@jake

    4
    How to Add a Text Filter to Django Admin
    hakibenita.com How to Add a Text Filter to Django Admin

    How we made Django admin faster by adding a new type of filter

    How to Add a Text Filter to Django Admin

    I ran across this while looking for tools to provide something like the raw_id_fields widget in Django's list admin view. This post is a few years old at this point, but I think the solution it contains still works pretty well (caveat: I haven't tried it yet).

    I also enjoyed the author's take on the conversation with support. I can definitely relate to that.

    1
    New goodies in Django 5.0
    fly.io New goodies in Django 5.0

    Let's explore a "deluge" of amazing features added in Django 5.0

    New goodies in Django 5.0

    This article is several months old, but if you're like me and missed some of the new changes, it was a nice surprise, with things like generated fields and fields with database default values (as opposed to the existing Python default values).

    0
    Django News #226 (5 April 2024)
    django-news.com Django 5.0.4 bugfix release

    New PRs to Django core, new Django jobs, ASGI deployment options, accessibility checklist, and more.

    0
    Coverage.py with sys.monitoring
    nedbatchelder.com Coverage.py with sys.monitoring

    Coverage.py now has experimental support for faster Python execution monitoring in Python 3.12. Please try it out!

    0
    jendrikseipp/vulture: Find dead Python code
    github.com GitHub - jendrikseipp/vulture: Find dead Python code

    Find dead Python code. Contribute to jendrikseipp/vulture development by creating an account on GitHub.

    GitHub - jendrikseipp/vulture: Find dead Python code

    The repo also links to some similar tools, like coveragepy, uncalled, and dead.

    7
    Django: Write-up on optimizing the system check framework - Adam Johnson
    adamj.eu Django: Write-up on optimizing the system check framework - Adam Johnson

    Django’s system check framework provides fantastic protection for configuration mishaps. It’s like a targeted linter that runs when you start Django commands. It takes advantage of runtime setup to inspect the true state rather than infer it from the source.

    Django: Write-up on optimizing the system check framework - Adam Johnson
    0
    Django News #225 (29 March 2024)
    django-news.com 🎉 Sarah

    Djangonaut Space debrief, Flask-like Django in a single file, optimzing the system check framework, and more.

    0
    Looking for feedback/review on my project starter template (DRF + Nuxt + Docker compose)
  • I haven't had a chance to look yet, but I'm using a pretty similar stack at, although with React instead of Nuxt/Vue. I definitely love using Docker, at least as a dev platform, because of the way it evens the field across OS's and makes it easy to onboard new contributors. Will definitely take a closer look when I get more time.

    Buuut ... I do mod the !django@programming.dev community, which you might be interested in checking out. There's also the !docker@programming.dev, which is also worth checking out.

  • Send Web Push Notifications from your own Server
  • Thanks, I appreciate the reply and openness to doing things besides just video.

  • Send Web Push Notifications from your own Server
  • Do you have a written version?

    I really dislike having to watch an entire video to catch the one bit of useful information. I wish I had the time to watch entire videos, but honestly, I don't. On top of that, my brain has often wandered off well before I get to the interesting bit.

  • Fitting logo for the community
  • Love it. Thanks for the improvement!

  • Ford is cutting F-150 Lightning production due to waning demand
  • There's a brake pedal, but it's almost never needed (and if it is, it's always been because of me being stupid). Releasing the accelerator engages the regenerative breaking, up to and including coming to a stop. I love it and don't ever want to go back.

    Having said that, I have had zero problem adapting back to normal breaking in my wife's car (ICE) when I need to drive it for some reason.

    I really don't understand people that complain about the 1-pedal driving.

  • Help trying to extract some data
  • Looking at the docs, it looks like it's an instance of ID3Tags, which appears to be based on couple of helper classes mutagen._util.DictProxy and mutagen._tags.Tags, where DictProxy (and its base DictMixin) provides the dict-like interface. Underneath that, it looks like it's storing the actual values in a simple dict (DictProxy.__dict) and proxying to that.

    I'm not seeing anything obvious that would muck with the incoming lookup key anywhere in ID3Tags or DictProxy.__getitem__ or any of the other base classes.

    I have to jump off to pack for a trip, but might try this out later in a live shell session to see if there's something odd going on with the API.

    In the meantime, OP, are you positive you were looking at the same file each time? Was this in a script or in a live Python shell session?

  • I just completed a task (setting a certain appointment) that I had been putting off for about TWO MONTHS.
  • I don't have much to say besides, good job. We all believe in you.

  • Found the ultimate case for framework expansion cards.
  • Looking at the thinkTank website, I think you're talking about the Secure Pocket Rocket model, but I'm not sure.

  • PSA: Fire Your Pharmacy and Find One That Respects and Takes Care of You
  • Anecdata here in the US, but my local mom and pop pharmacy (which I love) currently would lose $200/mo on my vyvanse because of my insurance and the whole generic vyvanse nonsense. This system sucks.

    For the time being, I fill my vyvanse at Walgreens and hope they're losing $200/mo on it. I fill everything else at the mom and pop, until they let me know the situation is better.

  • 357 of top 360 Python packages are now available as wheels
  • The installed packages themselves won't be faster, but they will install faster, sometimes much faster.

  • 357 of top 360 Python packages are now available as wheels
  • Yes, I believe wheels will generally be preferred by pip.

  • jnovinger Jason Novinger @programming.dev

    Backend (and sometimes frontend) software engineer working on sports data at Elias Sports Bureau.

    Experience with: Python, Django, Typescript/JS, infrastructure, databases

    Find me:

    • Github: github.com/jnovinger
    • Mastodon: https://mastodon.social/@jnovinger
    Posts 230
    Comments 38
    Moderates