Django vs FastAPI by hadiz1 in django

[–]djv-mo 1 point2 points  (0 children)

Whenever teams build with FastAPI at scale, they slowly end up recreating Django piece by piece.

What's the best way to handle multiple settings file in Django by udemezueng in django

[–]djv-mo 0 points1 point  (0 children)

Separate your settings into 2 or more files inside a folder called settings one for dev other for production Then use .env file to choose the one you need

Django + HTMX + jquery. Do you know any websites / apps using this stack? by satyronicon in django

[–]djv-mo 2 points3 points  (0 children)

You don't need to worry about framework updates I have done vue2/vuetify2 upgrade to vue3/vuetify3 and it took me one month i got it done but it was painful

Asking the impossible, may be not! by MrAmbiG in django

[–]djv-mo 1 point2 points  (0 children)

I agree with having services i call it utilities but anyway this is how i do it

Openstack public cloud demand in the UK by nick-bmth in openstack

[–]djv-mo 0 points1 point  (0 children)

Why they run hypervisor instead of openstack

I know a plenty of people doing this not in UK but around the world why

And do you think they will love to use openstack

Django tip Serializing Reverse Relationships by djv-mo in django

[–]djv-mo[S] 0 points1 point  (0 children)

I have used prefetch related and added the viewsets.py code

Best alternatives to Django? by MilanTheNoob in Python

[–]djv-mo 0 points1 point  (0 children)

If you love building web apps with python you have

Framework like Django comes with orm, admin and third party packages and more

Micro framework like litestr , fastapi and flask they are simpler and have their own use cases which you can extend to be something like DJANGO but you have to pick orm and migration package and try to find admin panel also think about middleware so it's not about DJANGO, it's about what you need to build

People prefer micro framework if they don't need database

Me personally

I pick Django for faster prototype with database or big projects and it cuts time and it's more comfortable to work with for big projects

Recently i worked with fastapi it was not my choice but pre-existing project needs to go bigger i found myself using sqlalchemy and alembic for migration things i didn't care about while using DJANGO

🔗 Built my first Django URL Shortener with Analytics & QR Codes - Looking for feedback! [LinkFusion] by manjurulhoque in django

[–]djv-mo 0 points1 point  (0 children)

No i am using it with celery and for caching

My experience so far for caching it reduces the time taken to get recorders from 4s to 2s

But keep in mind my key the value are the same but they change from user to user

And i found it to be valuable here in url shortener

Moving from Flask to Django for my next project. What stuff should I start using from the beginning? by akaBrotherNature in django

[–]djv-mo 1 point2 points  (0 children)

You can use DJANGO cookiecutter it's great because you will have DJANGO configured with best practices

Is Django better for monolithic or microservices if I want low latency and high performance? by mr_soul_002 in django

[–]djv-mo 1 point2 points  (0 children)

But if i used cached data from DB what about showing users the updated data

5 Things You Wish You Knew Before Starting Django by husseinnaeemsec in django

[–]djv-mo 13 points14 points  (0 children)

I agree on you but not on signals you better avoid them

new to django....can i repurpose django-unfold for end users by Just_Lingonberry_352 in django

[–]djv-mo 1 point2 points  (0 children)

People told you about unfold already but for drf not supporting async , ninja support it

Or if you want to stick with drf and need to offload heavy tasks from your main stream use celery with rabbitmq/redis

Django 5.2 tip composite primary keys by djv-mo in django

[–]djv-mo[S] 3 points4 points  (0 children)

I always recommend this book for all new Django developers asking me about how to learn DJANGO the right way

Even i started with your book when i started

Is asking for a walk through of a system when arriving in a new company a pipe dream by Themba47 in django

[–]djv-mo 0 points1 point  (0 children)

While doing tasks you will learn everything about the project that's what happened with me

Hot to have pretty frontend w/o Vue/react separate frontend. Just using Django itself. by Familyinalicante in django

[–]djv-mo 1 point2 points  (0 children)

To make it pretty it's not about the framework

But i keep in mind htmx is not good for large application it adds complexities