I think it really depends on what exactly you are using from Django. If the API is simple, you do not use many classes of middleware, context processors, etc., then you can remove it. If you use Python there are tons of WSGI lightweight web frameworks like Bottle or Flask . They usually perform a little better than Django +, they are mostly written, so you can easily create a REST API. The โdrawbackโ is that if you need certain things, such as SQL ORM or some cache processing, you must include these batteries separately and you cannot use your own parts of Django, which you are probably used to. It also includes a roll of your own authentication system.
I think you need to find out if you really want to rewrite the code. I personally think that a small increase in productivity is often not worth the effort and time.
source share