Re:Django 4.1
by ingenieroariel on Wednesday August 03, 2022 @10:07AM
(#32331851)
Here is an example of a single file Django project I started around eight years ago that does what you mention:
https://github.com/planetfederal/registry/blob/149a2b958dd05...
It basically boils down to rejecting the folder structure that django-admin sets up for you, importing stuff yourself and doing some basic initialisation/configuration.
Once you do that, django kinda somehow behaves like a micro-framework, with the significant difference that you can import and use the advanced features if you want/need to.