I'm also not sure about how to render Flarum inside a HTML-template that is used by Django. There seems to be no "best practice" for using inline PHP in the HTML-template because the very thought of doing so is frowned upon.
The easy way could be to serve Flarum on a subdomain or subpath where the webserver expects PHP instead of the Django entrypoint.
But then I'd need to make everything that Django provides (e.g. user info, private message count, newest blog articles, and whatever I may think of that is visible outside of the content wrapper) accessible via API, so I can still show it in the PHP-environment via PHP that Flarum needs.
So either I manage to run inline PHP code within the Django template engine or I have to write an API for a ****ton of stuff to pass it over to Flarum.
Am I missing something here? What would be the best approach?