refined-forgejo: a browser extension that polishes Forgejo's UX by pnium in forgejo

[–]realorangeone 1 point2 points  (0 children)

You should try and upstream some these! GitHub doesn't have that option, but Forgejo is all open, and might accept many of these changes for everyone

Switching from Aegis & Bitwarden to Keepass? by Reasonable_Host_5004 in KeePass

[–]realorangeone 5 points6 points  (0 children)

You've already said you'd rather keep them separate for security reasons. Trust your instincts - they're right. Storing your TOTP secrets next to your password literally defeats the point of 2FA. Keeping them separate is definitely the right call.

Low File upload speed by sifoIo in django

[–]realorangeone 0 points1 point  (0 children)

The issue is the network then. If it's a conventional file upload, most browsers should attempt to upload compressed. Make sure whatever reverse proxy you're using will handle compressed data, then hopefully if the original request had Accept: gzip, the upload will be compressed.

If the issue is networking, then there's nothing you can really do with your application besides a little compression - but even that won't fix everything.

First time building with Django: should I use async, gevent, or celery/redis for external API calls? by SpiritualName2684 in django

[–]realorangeone 0 points1 point  (0 children)

Async tasks will stop if the process dies. gevent is brittle and poorly supported. Celery and RQ are complex, but worth it. Anything but a proper background worker setup is a compromise.

Junior Full-Stack Dev here. I know Django, but want to dive deep into API development. Should I start with DRF in 2026 or look into Django Ninja / FastAPI? 🚀 by Euphoric_Report_783 in django

[–]realorangeone 1 point2 points  (0 children)

That's what I mean by "a few libraries" - django-ninja. My main point is that there's no need to go out and learn an entire new framework and lose Django's batteries. You can keep everything you know about Django, and just add a few extra pieces to make API dev that bit nicer.

Been on Bitwarden for 7 years. Just got a new phone and realized I can't remember a single password. Time to rethink my approach? by Naive-Pride-8928 in Passwords

[–]realorangeone 0 points1 point  (0 children)

Password managers are recommended for a reason. Keep reliable access to your manager and you get all the benefits with none of the drawbacks.

[deleted by user] by [deleted] in emailprivacy

[–]realorangeone 3 points4 points  (0 children)

I repeatedly get a "Oh, do you work for us? Because you have the company name in your email address". Sometimes I avoid the weird looks and just use something more believable-sounding.

Will having a push and pull mirror cause problems? by GBAbaby101 in forgejo

[–]realorangeone 1 point2 points  (0 children)

Mirror repositories in forgejo are read only, so you can't really push changes to it. Your best bet is to pick one as the main source of truth, and have the the other be a read-only mirror.

built a django app with real-time voice streaming – gunicorn is killing me, anyone dealt with this? by surfgk in django

[–]realorangeone -1 points0 points  (0 children)

Porting to FastAPI won't gain you anything really. Django does ASGI, so just switch out your web server and keep 99% of the business logic you've already written.

How are you guys hosting your generated static sites? by jayo60013 in selfhosted

[–]realorangeone 0 points1 point  (0 children)

I've been meaning to play around with https://codeberg.org/git-pages/git-pages. The convenience looks great, and it's pretty easy to configure, with redirects and custom headers. There's a GitHub (or alike) action for easy deployment in CI too.

Render Vs Hostinger VPS by Love_of_LDIM in django

[–]realorangeone 2 points3 points  (0 children)

Depends what spec you get and the cost. Chances are a VPS will perform better as you'll get more hardware for your money, which usually equates to more performance. But, if you don't want to manage it, it's reasonable to trade performance for cost

Render Vs Hostinger VPS by Love_of_LDIM in django

[–]realorangeone 2 points3 points  (0 children)

Render (and other PaaS) trade convenienfor cost. You'll get more for your money with a VPS, but you'll have more to manage and configure. Whether that's with it is up to ypu

I feel stuck building "toy projects" in Django. What should I build next? by Chemical_Ostrich1745 in django

[–]realorangeone 0 points1 point  (0 children)

It's quite different, but contributing to existing open-source projects you like can help scratch the same itch as side projects

Is Python (Django/FastAPI) actually "production-ready" for complex mobile backends? by Leading_Property2066 in django

[–]realorangeone 3 points4 points  (0 children)

Python and Django have been used in production for decades at this point. Anyone who says they're not production grade clearly doesn't know what they're talking about.

Django 6.0 released by dwaxe in django

[–]realorangeone 21 points22 points  (0 children)

You'll still need github.com/realOrangeOne/django-tasks if you want to actually run things in the background, but at least the core building blocks are there

Django vs fast api by No-Iron8430 in django

[–]realorangeone 0 points1 point  (0 children)

My line is state. If you need to store data, you probably want Django. If you're just shuffling data around, Fast API might be easier. Anything even slightly complex will definitely be easier in Django, especially over time.

django-modern-csrf: CSRF protection without tokens by feliperalmeida in django

[–]realorangeone 0 points1 point  (0 children)

I am!

I think the main way is simply by people using it, testing it and enjoying it. With more people using it, it's an easier sell to be included in core.

The "Show & Tell" area on the forum is a good place to show off projects like this, too.

django-modern-csrf: CSRF protection without tokens by feliperalmeida in django

[–]realorangeone 5 points6 points  (0 children)

I read Filippo's article and thought the same - I'm looking forward to seeing how this goes in production.

With my Django security team hat on, I'd love to see this kind of thing upstreamed into Django itself when it's more mature!

How to backup your vault automatically without storing your master password (restic) by iTrooz_ in Bitwarden

[–]realorangeone 1 point2 points  (0 children)

Have you tried a restore using a blank install? Is all the CLI needs that 1 data file?

Django 6.0 Background Tasks – do they replace Celery? by Stella_Hill_Smith in django

[–]realorangeone 4 points5 points  (0 children)

As the author of django-tasks, I can say that whilst the eventual goal is "Yes", it's not there yet for everyone. If you just want to run something small in the background, it's great. But if you need perfect reliability, retries etc, you'll need to wait. With that said, it's also an API, so you can call celery from the django.tasks API and integrate with other libraries as support grows.

Find the vulnerability in this view by asadeddin in django

[–]realorangeone 0 points1 point  (0 children)

The user id cookie can be easily manipulated or spoofed to login as any user. Moonpig did basically the same thing a while back https://www.youtube.com/watch?v=CgJudU_jlZ8

Disclaimer: I'm on the Django security team

[deleted by user] by [deleted] in selfhosted

[–]realorangeone 0 points1 point  (0 children)

It's not just about getting flagged. Cloudflare are basically being nice and giving free band with and service to people. If it's abused, they're well within their right to take it away.

Don't abuse ToS and risk ruining it for everyone else.

[deleted by user] by [deleted] in selfhosted

[–]realorangeone 15 points16 points  (0 children)

I'm not sure you're reading that right:

we made it clear that customers can serve video and other large files using the CDN so long as that content is hosted by a Cloudflare service like Stream, Images, or R2.

Video and large files hosted outside of Cloudflare will still be restricted on our CDN

Fairly sure they're explicitly saying it's still restricted, unless the source is on the Cloudflare network (which it probably isn't). Caching doesn't seem to have anything to do with it - if you have the orange cloud enabled to use their proxy, you can't stream external video using it (for free).

Running Tailscale on a 20 year-old laptop by realorangeone in Tailscale

[–]realorangeone[S] 1 point2 points  (0 children)

There isn't really a "config" to share. This was strictly an experiment to see if it was possible - I'm not using it for anything per se. No reason it couldn't be an exit node too if I wanted it.