5 ms·
Interesting, somehow this project didn't come onto my radar. I was just about to start using Flask to build a REST API for our Oracle database. Definitely check
by overcast 10y ago
Interesting, somehow this project didn't come onto my radar. I was just about to start using Flask to build a REST API for our Oracle database. Definitely checking this out instead.
- harel 10y agoThere was a port of DRF for Flask, but it was not as mature and not as good. I went with Django mainly because of the included batteries and in particular DRF.
- overcast 10y agoI was just always dissuaded from the size of Django, Flask is mininal, and gets up and running quicker for me. Coming from a lot of Express work, it just made more sense to me, but I'll be definitely diving into DRF for my new project.
- kennydude 10y agoDjango is batteries-included, but the batteries aren't heavy. You can easily turn off 99% of the stuff it does for you. You also never know when you need a really good admin panel.
- collyw 10y agoThe admin is great, especially at the start of a project, when you want to look at and manipulate your data even if it isn't needed in the product you end up with.
- harel 10y agoThe size is less relevant - you only use what you need. The other main reason I chose Django for a particular project is the ease at which I can find experienced developers afterwards. Not that it really matters that much, Python being Python, but its easier to find someone with Django experience than one with Flask.
- morenoh149 10y agoBut django is a superset of Flask. If it's easy to find django devs it must be easy to find Flask devs.
- harel 10y agoNot really. Because its python, its all Python devs. But if you want someone with specific Django experience, you'll find it easier to find than flask. Popularity wins and Django is popular (for a good reason)
- justinsaccount 10y agoI use flask for a few applications.. it works, but even in my cases: Any sufficiently complicated flask application contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of django. For sites that are just a few endpoints, it's great. I use it on an application that uses redis+gearman to spawn docker containers on demand. django would have worked too, but I'm not using anything other than routing and templating. On the other hand, I have an application that I built on flask that I needed to shift the timezone of the dates. in django you change TIME_ZONE and you're done. My flask app I had to fix it all myself, it was a nightmare.
- Spiritus 10y agoDjango can be minimal if you want: https://github.com/rnevius/minimal-django/blob/master/minimal.py https://github.com/rnevius/minimal-django/blob/master/minima...
- ralmidani 10y agoThe size of the framework is really not relevant in the context of Python server-side development. You just import what you need and ignore what you don't. For example, I develop single-page apps with Django+DRF and Ember, so I never use Django's template engine. If you really want to minimize your setup, you can even go into your settings.py file and turn off the middleware you don't need. Put another way, it's not like client-side JavaScript where the entire framework is sent to the user's browser.
- gshulegaard 10y agoBeware, having used Django, Pyramid, and Flask (in order of first use) I would highly recommend Flask over Django. Django is batteries included which can cause pain when trying to use different batteries. For me, SQL Alchemy > Django ORM for example. But if your use case fits well within the Django ecosystem...then Django can be easier.
- thorin 10y agoIf you have oracle would you consider using Oracle rest data services? I've only used it a little bit but it seems to make everything very easy. http://www.oracle.com/technetwork/developer-tools/rest-data-services/overview/index.html http://www.oracle.com/technetwork/developer-tools/rest-data-...
- overcast 10y agoYeh that's neat, but I feel like that is just going to cost me something to play. Also, there will be other databases tied into this project as well SQL Server, MySQL, and RethinkDB.
- emmelaich 10y agoI've installed ORDS. It's got some installer wackiness -- modifies the .war as part of the install. Otherwise, it's smooth enough and runs in Tomcat. I haven't used the REST features so much; we just use for the APEX pl/sql bridge (ugh).