JD-P / accordius

Whistling Lobsters 2.0 backend with Django and Postgres
MIT License
1 stars 3 forks source link

Remove Dependency On Django #21

Open JD-P opened 5 years ago

JD-P commented 5 years ago

While Django probably isn't going anywhere any time soon, it's a big framework. And I'm realistically only using a small fraction of it. Accordius is just a backend API, it doesn't have any need for Django's templating system or its built-in CMS or half a dozen other things it does. It's not exactly a restrictive framework, but on net if I'm only using Django for its ORM and URL routing that's clearly technical debt.

As a tentative strategy for doing this, it would be useful to try to make the system more abstracted from the particular interfaces it uses to serve content. If you can slowly cut off the center logic of the application from Django, you'll eventually be able to just swap it out entirely for new primitives.