5 ms·
Hmm.. flask shouldn't be a dependency. I tried to get iommi to work on flask/sqlalchemy many years ago, but that's somewhat abondoned... > I am thinking about
by boxed 1y ago
Hmm.. flask shouldn't be a dependency. I tried to get iommi to work on flask/sqlalchemy many years ago, but that's somewhat abondoned...
> I am thinking about using it for some sections (a management/dashboard bit, and probably the admin) of a site, the rest of which is plain Django. Are there likely to be any problems doing that?
Incremental adoption and mix-and-match is also a fundamental design goal so that should work fine.
- graemep 1y ago> Incremental adoption and mix-and-match is also a fundamental design goal so that should work fine. Thanks, going to try it out on my project then, probably today. > flask shouldn't be a dependency. Its in the rest requirements: https://github.com/iommirocks/iommi/blob/master/test_requirements.txt https://github.com/iommirocks/iommi/blob/master/test_require... > I tried to get iommi to work on flask/sqlalchemy many years ago, but that's somewhat abondoned I was wondering whether something like that was possible.
- boxed 1y ago> [flask] in the test requirements Good point. I've removed it. Thanks. > [iommi for flask possible] The HTTP parts are super easy, it's the ORM mapping support that is the big issue. When I made an attempt first time SQLAlchemy was in the middle of a huge API change too, which meant the docs were rather bad and incomplete. Maybe it's better now. Supporting both Django Templates and Jinja2 is a bit annoying too, but doable.
- graemep 1y agoThanks, that was quick! I noticed you are the developer of one of the other dependencies, django-fastdev which fixes a lot of Django annoyances itself. Very nice. TBH I would probably use iommi with Django even if you supported Flask or similar because the Django ecosystem is huge and I am familiar with it.
- boxed 1y agoThe idea would be to support both transparently.