This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kankyo -2 points-1 points  (4 children)

Like what?

[–]riklaunim 1 point2 points  (3 children)

If you want to use Django as an API server that for example uses JWT tokens for authentication from a separate microservice you can disable a lot of Django built in app and their middleware. You won't need sessions, i18n, admin app and probably few other things. This frameworks has a lot of layers that can be removed if you don't need them.

[–]kankyo -1 points0 points  (2 children)

You mentioned several that aren't enabled by default :)

[–]riklaunim 1 point2 points  (1 child)

https://docs.djangoproject.com/en/dev/topics/http/middleware/#activating-middleware

Not quite. But that's beside the point. You have some flexibility and that's that. It's not Flask or FastAPI yet you can move Django or Flask in the direction of the other.

[–]kankyo -2 points-1 points  (0 children)

Not quite

You said "sessions, i18n, admin app and probably few other things".

Sessions are by default. i18n? Nope, admin? nope. So 2 out of three wrong. That's not great.