How do i migrate data from wordpress database to django database.

It’s sub-optimal, but assuming you don’t have any data format issues, it generally can be made to work.

The most likely area for concern with trying to use them are ensuring foreign key relationships are properly maintained.

You’d need to somehow create the FileField objects. I don’t know any trivial way of doing it.
I know someone here did a project a couple years ago to import a large number of files into their system. (How to deal with a previous model to display existing images) There might be some useful information in that thread for you.

No, I was just pointing out our process. None of that is required, just that we’ve learned that it’s the best process for us.