Should I use Django or FastAPI?

I am bit confused about whether I should use Django or FastAPI?
I am a beginner in Fastapi but I am finding it easier than Django. Also, recently I badly failed in an interview because I simply used django-allauth for authentication but did not know much about auth.

When I compare this to fastapi, I had to write my own auth and also the learning curve looks simpler. For instance you can check the hello world of Fastapi: [Hello FastAPI](Fastapi Hello World)

But before making the decision, I want to understand if I should really choose it? Am I thinking in the right direction?

Well, in short and simple words, Django is the best choice when you are looking to build a traditional web application.
On the other side if you are looking to develop real-time applications, APIs and microservices, then FastAPI is a good option.