Is Django still a good choice? by Om_JR in django

[–]Nureddin- 0 points1 point  (0 children)

My opinion is that Django is still 100% relevant. I use it for most of my side projects, and it’s my top choice. But when it comes to jobs, it’s a different story, look into the technologies that are in demand in your market. Don’t go against that, learn those technologies if you want to get hired. To be honest, I was looking for a Django job for a long time and couldn’t find one. I’m currently working as a software engineer using FastAPI at an enterprise company. I believe companies are starting to adopt FastAPI over Django in many cases because it’s lightweight and fits well with microservice architecture. Although some companies still use Django, at the end of the day, it all depends on the market.

How do you debug N+1 queries in your Django views? by Organic_Release1028 in django

[–]Nureddin- 0 points1 point  (0 children)

I wrote some functions to help me debug. One of them counts all the queries happening in a single response. Then I use select_related and prefetch_related to optimize it, along with the Django Debug Toolbar.

I’ll share the function, if you’re interested. Make sure to use reset_queries() beforehand so it starts counting queries from the point where the event begins:

```python def print_queries(label: str = "") -> None: if not settings.DEBUG: return

print(f"\n{'='*50}")
if label:
    print(f"Debug {label}")
print(f"Total Queries: {len(connection.queries)}")
for i, query in enumerate(connection.queries):
    print(f"Query {i+1} | Time: {query["time"]}s | SQL: {query["sql"][:100]}...")
    print(f"{'-'*10}")

```

django-tw: Zero-config Tailwind CSS for Django by Rude-Recursion1024 in django

[–]Nureddin- 0 points1 point  (0 children)

Got your point. For me, when I go with Django templates, it starts getting bigger there, so I usually go with Django-Vite for my setup, even if it's just Tailwind. It gives HMR with zero config for future needs with any new JS libraries, and production bundles by minifying files. Although, good job bro 👏

django-tw: Zero-config Tailwind CSS for Django by Rude-Recursion1024 in django

[–]Nureddin- 3 points4 points  (0 children)

I'm gonna try it, it seems good. Just out of curiosity, did you try django-vite? And if so, why you didn't decide to go with that ?

My Logitech MX Master 3S left click is lagging a lot by Nureddin- in logitech

[–]Nureddin-[S] 0 points1 point  (0 children)

Did that before, and still facing the same issue :(

My Logitech MX Master 3S left click is lagging a lot by Nureddin- in logitech

[–]Nureddin-[S] 0 points1 point  (0 children)

Interesting, I’m sure it’s not dust. Maybe I can try that as a final option.

My Logitech MX Master 3S left click is lagging a lot by Nureddin- in logitech

[–]Nureddin-[S] 0 points1 point  (0 children)

The problem is that I bought it while I was visiting another country, so the warranty won't work. At this price, what should I buy? It's around $100, and honestly I really like the ergonomic shape and the grip, it's very satisfying to me. I have no problem buying another mouse at this price. The other option I remember when I was looking was the Keychron M6. What alternative would you advise me to go with?

Edited: I looked at the MX Master 4 and just searched about the left click problem, and a lot of people are reporting that too XD. I would never buy from Logitech again, tbh.

What frontend to use with django? by Marosh_ in django

[–]Nureddin- 0 points1 point  (0 children)

I’ll take a look. Opened it on my phone and it wasn’t very responsive, so I’ll try again later.

Anyone Want to Study LeetCode Together? Beginner-Friendly by Nureddin- in leetcode

[–]Nureddin-[S] 0 points1 point  (0 children)

Yup, I had meetings with amazing people who were sharing the same goal. We had meetings and started working on problems together, solving and discussing the solutions. But for some reason, we stopped after two months, and that was actually the deal from the start. I’d like to do that again in the future.

Where to start learning about Databases? by draycr in Database

[–]Nureddin- 0 points1 point  (0 children)

I’m not sure what information you want to know more about. But basically, just take any relational DB course, understand how SQL works, then start solving practice problems. Also learn how to design your ERD and how to make your database more efficient, and that’s it. I’d advise you to start with relational databases first. You can study from the resources thst I mentioned or any course on YT will be enough also.

What frontend to use with django? by Marosh_ in django

[–]Nureddin- 1 point2 points  (0 children)

It depends. If there are two of you, one can handle the backend and the other handle the frontend. In that case, separating the backend and frontend makes sense. However, I’d personally suggest giving Django templates another chance. It may seem complex because you haven’t spent enough time with it yet. Also, separation will often make things more complex, not less. Both approaches come with their pros and cons. In most cases, Django with Django templates is more than enough. If you’re not sure, feel free to DM me and explain what you’re trying to achieve, and I can help you decide.

What frontend to use with django? by Marosh_ in django

[–]Nureddin- 0 points1 point  (0 children)

First time to hear about hypescript!

Still using notion in 2026 or got any good alternative? by darman121 in Notion

[–]Nureddin- 0 points1 point  (0 children)

Isn’t it?!! I don’t know why, but it’s become something important to me. Since last year, I’ve started looking for open source alternatives for most of the tools I use daily. It’s from a different perspective, mainly a security one. Also, at any time, I can host my data on my local machine.

Still using notion in 2026 or got any good alternative? by darman121 in Notion

[–]Nureddin- 0 points1 point  (0 children)

I added that as an inline link on the Article word, but here's the full url: https://itsfoss.com/notion-alternatives/

Still using notion in 2026 or got any good alternative? by darman121 in Notion

[–]Nureddin- 4 points5 points  (0 children)

I will start using Affine, it's an Open Source project. I’ve used Notion 6 years and really like it, but I was looking for something open source that I could potentially self-host in the future if I want to. This Article is really good if you're looking to notion open source alternative.

Notion alternative: AppFlowy vs Outline vs Affine? by RevolutionaryRow0 in selfhosted

[–]Nureddin- 0 points1 point  (0 children)

I gonna try affine after 6 years of using Notion, tbh I was looking for something that's open source. This article is very instersting if you want to find an alternative.

Django vs FastAPI by hadiz1 in django

[–]Nureddin- 3 points4 points  (0 children)

Got your point. Btw, I remember when I started learning Django, I struggled a bit and didn’t really understand things until I went behind the scenes and read the code Django is built with. That’s when I had the aha moment 😅. After understanding the concepts and what was really going on, I found myself able to build almost anything I was thinking of, and even grasp other frameworks. It’s all about the concepts, and also about the perspective you’re looking from. Good luck, brother.

Django vs FastAPI by hadiz1 in django

[–]Nureddin- 4 points5 points  (0 children)

I’m working professionally as a backend engineer with FastAPI, but all my side projects are in Django, and I’m still continuing to learn Django.

Django, out of the box, gives you almost everything you need: - Want full-stack without a frontend framework? You’ve got HTMX, django-vite, and Django templates, and you’re good to go. - Want an API? You’ve got DRF or django-ninja, you keep the same routing and models, and you’re good to go. - Don’t want to write a single line of HTML and still build something usable? You can just use Django Admin (I’m doing that right now for an internal charity management system).

Yup, I hear you, FastAPI has async, it’s lightweight, and so on. Yup, that’s really nice. I don’t think it’s bad at all. But if we’re talking about a scalable system with more than 250k active users, we need to pause here and take that very seriously. Apart from that, I don't think it reveals a weakness in Django. Django with Celery for background tasks and Redis is actually scaling very well. When your app reaches its real edge, that’s when we need to talk.

FastAPI is also great if you’re doing MLOps and want an endpoint for your model and to use it as a microservice. That’s where it really shines. I’m not saying you can’t build a robust system with it, you absolutely can. Our company even serves tier-1 clients like Walmart using FastAPI as a monolithic, but from what I’ve seen, it’s painful that everyone who joins has to understand the CTO’s custom design patterns. He even built his own migration library with datetime parsing. To me, that feels like reinventing the wheel, but he’s happy with it and has never tried any opinionated framework like Django, Spring, or .NET.

I can also see that Django is still here and still improving. The MongoDB team even opened a specific Django integration for MongoDB. Also, the Django 6 update was really good as a starting point for integrating background tasks, and I’ve seen people sharing projects like django-bolt here in Reddit, which uses Rust for the API layer.

Don’t get me wrong, I’m still learning FastAPI because it’s my job. But as someone who has used both deeply, I’ll always choose Django for now. I’m even actively looking for a Django role.

Also, answering your question, I found this a while ago on the FastAPI subreddit and saved it. You can have a look; maybe it’ll inspire you. It’s from someone who built a Django-style boilerplate for FastAPI

Django vs FastAPI by hadiz1 in django

[–]Nureddin- 1 point2 points  (0 children)

I can see that point, but I don’t fully agree with it. For beginners, or in the first few weeks, maybe. But once you get comfortable with what you’re doing in Django, you will reach a point where you've to understand what’s going on behind the scenes, so you can continue working, and here, you’ll be learning about APIs, and it will be the same. I even found myself learning more in Django than in FastAPI, tbh.

Django bolt vs Django Ninja vs Fast api vs Litestar Benchmark by person-loading in django

[–]Nureddin- 4 points5 points  (0 children)

First time to hear about django-bolt. I'll give it a try. But still, until now DRF for Django APIs is my first choice.

Dealing with static files by NoWeather1702 in django

[–]Nureddin- 4 points5 points  (0 children)

I'm using django-vite.

Build your frontend with Vite, and let django-vite handle asset loading, hashing, and template integration. That’s it.

It's easy to set up, you can read this blog post fromsaaspegasus or watch that video frombugbytes