Situation:
I am preliminarily considering using Django for
- serve HTML (according to the Django template)
- serve all static files like CSS, JS from a Django project
and my intention to use Django stops here. After the javascript files are uploaded to the client side, they exchange data with the flag with the RESTful API (Ajax path).
Why two structures? And why so?
The third-party guy from this project I'm working with knows Django well, and I think I mostly want to use its CSS / HTML template / jquery.
I want to have an independent API server, and I feel that Flask is ideal for my need (from creating an API perspective API).
I guess people would suggest "why not ask the Django guy to use Jinga2 for templates?" (so we can end Django). I assume that my current answer will be this: I do not want it to invest too much time (to find out)
I suppose people would suggest "why not use Django to service the Restful API call?" (so we can end Flask). I assume that my current answer will be: I (as a person implementing API logic), like Flask.
My question
Short: is it doable? or does this sound like a crazy idea?
Long: can you kindly give some kind of guidance?
Thanks,
source share