I'm a data scientist, and I make apps using python. Where I make a lot of connections with databases, build and deploy my code on the cloud and I use models training and visualization. My question is: Is Django useful for making non-web apps? if not are they any other frameworks? (similar to spring-boot for java) Best regards
CodePudding user response:
Django is a web framework which comes with many preinstalled apps. This will make your application bulkier than it is required.
For your usecase, you need not to use any frameworks. Just code it in python and you can use the available library to perform db operations.
If you are deploying your app on the cloud, and want expose some endpoints to trigger any of your internal functions, go with Flask
framework. It is a light weight micro web framework
CodePudding user response:
I would contrast the first answer and say absolutely you can use Django with no intentions of building a front end. The ORM is so powerful and easy to use along with the out-of-the-box signaling system among many other features. In my opinion a little extra "bulk" is worth the tools you have at your disposal with it. And of course you always have the option to add the front end later if you like.