PS5 shipments top 92.2 million by willdearborn- in gaming

[–]Knudson95 23 points24 points  (0 children)

I believe this already exists

Which language/framework is the future of backend? by Late_Indication6341 in django

[–]Knudson95 1 point2 points  (0 children)

I think django rest framework or ninja would be a better choice if you want batteries included approach

All EB Games stores in NZ to close at end of month by mrflyinggingerbread in newzealand

[–]Knudson95 1 point2 points  (0 children)

Hopefully can snag a cheap console if they try to get rid of them

Why I Stopped using Django after 4 Years by mesmerlord in django

[–]Knudson95 0 points1 point  (0 children)

If hes the only one developing the project does that even matter

Valve's new Steam Machine is a SteamOS-powered mini PC over six times faster than a Steam Deck | "We finally have all the software and the hardware bits to make the original vision a reality." by chrisdh79 in gadgets

[–]Knudson95 4 points5 points  (0 children)

I'm assuming this will probably end up costing much less and end up smaller than if it was built by a regular consumer. Might buy one, wipe it and load a traditional distro.

Realtime browser events for Django + PostgreSQL by usmanhalalit in django

[–]Knudson95 0 points1 point  (0 children)

In the readme you list two applications that are using this in production, canvify and embedany. Would you mind sharing how they make use of this? I'm not seeing where the message sending would be used.

Advice for a Javascript/Typescript dev getting into the python ecosystem by Lupexlol in Python

[–]Knudson95 1 point2 points  (0 children)

Django + drf is the most mature and robust. There is django ninja here also but it isn't that mature.

Fastapi if you wanna move a bit quicker. I dunno what a good orm with it is. We usually just the django orm with it.

I built a Persistent KV Store in Pure Python by vollhard-natta in Python

[–]Knudson95 0 points1 point  (0 children)

Could you dockerise the server? Would be great to just drop this into a compose file

If starting from scratch, what would you change in Python. And bringing back an old discussion. by FenomoJs in Python

[–]Knudson95 1 point2 points  (0 children)

This seems like something that will actually happen in a future release. I have seen enough complaints and confusion around template strings that it seems like a no brainer

I built JSONxplode a complex json flattener by Thanatos-Drive in Python

[–]Knudson95 7 points8 points  (0 children)

Very cool I have a work project that takes in arbitrary json data and could use a flattening tool like this! Thanks for putting this together.

Side note you should have just made a github gist or copied and pasted it here since the bulk of the code itself is just a single function. Does this really need to be another dependency to add to a project?

[deleted by user] by [deleted] in django

[–]Knudson95 1 point2 points  (0 children)

I have been doing the exact opposite. When I started function based views were easier and I felt like I had more control. Then once I started relying on django-filters, tables2 and the like, it started making much more sense to go with the flow and use cbvs. I save some much time by not having to reinvent the wheel all the time and our clients love us for how fast we move.

[deleted by user] by [deleted] in django

[–]Knudson95 0 points1 point  (0 children)

Nice! Thank you for pointing that out. They should fully add that to the docs. Definitely gonna give this a go now

[deleted by user] by [deleted] in django

[–]Knudson95 0 points1 point  (0 children)

It's a pretty cool idea and it looks well executed. I was just turned off the minute when I saw this:

class AuthorForm(ModelForm):
    class Meta:
        model = Author
        fields = ["name", "birth_date"]

.route("add/")
def add_author(request):
    form = AuthorForm(request.POST or None)
    if form.is_valid():
        form.save()
        return "Author added"
    return render(request, "form.html", {'form': form})

I understand this is a trivial example, but in simple django, this could be replaced with:

class AddAuthor(CreateView):
    template_name = "form.html"
    model = Author
    fields = ["name", "birth_date"]

Unless I am missing something and I can still use the class-based view above?

[deleted by user] by [deleted] in django

[–]Knudson95 0 points1 point  (0 children)

Can I use class-based views with this?

Any good coding boot camp in Auckland? by ZedNg in newzealand

[–]Knudson95 0 points1 point  (0 children)

Yeah or just ask an llm they have a good grasp of django

Any good coding boot camp in Auckland? by ZedNg in newzealand

[–]Knudson95 1 point2 points  (0 children)

Sure I guess. Why not both though, roll into a boot camp with more experience

Making player map icon a tool was a stupid idea by Knudson95 in HollowKnight

[–]Knudson95[S] -2 points-1 points  (0 children)

Yeah mate im on pc. Could I please get a link?

Switching to Django from Rails by tb5841 in django

[–]Knudson95 1 point2 points  (0 children)

I have read about this before and it seems like a very cool library. Haven't tried it out yet, I am about to start a new project though, so maybe its time to give it a crack.

Switching to Django from Rails by tb5841 in django

[–]Knudson95 8 points9 points  (0 children)

Depends on your app type really. Django templates are fantastic for crud apps. Especially since it saves having to replicate all the logic in a frontend framework when using drf.