Skip Navigation
A bit fucked up, isn't it?
  • Crap, now I need to know about competitive Jenga ...

  • Layman's Guide to Python Built-in Functions · Matt Layman
    www.mattlayman.com Layman's Guide to Python Built-in Functions · Matt Layman

    This is a plain language guide to every built-in function in Python, paired with a simple example that shows each function in action.

    Layman's Guide to Python Built-in Functions · Matt Layman

    Via https://mastodon.social/@mblayman/113028791455699212

    1
    Using Groups for the staff and superuser flags - Software Crafts
    softwarecrafts.co.uk Using Groups for the staff and superuser flags - Software Crafts

    A prototype for a possibly more aligned authentication system

    Via https://indiehackers.social/@nanorepublica/112909832749194692

    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.

    3
    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
    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.

  • 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 237
    Comments 40
    Moderates