luceos That would be one way to solve the first hurdle, but I need to have a grasp of the whole picture before beginning.
Assume the following:
1. I have a webpage that maybe looks like this: http://demo.datcouch.com/index/reveliohtml
2. I want to make it availiable under "Forum Layout" in the header there.
Now the problem is: Everything is rendered by Django, which is based on Python. I can't just put a PHP app in there right out of the box.
There seem to be two ways: Either I manage to use inline PHP code in the HTML template by either prerendering it before passing the template to Django or overloading the domain configuration in nginx so it would maybe render it after Django did.
Or I make it so the Forum link is not rendered by Django but rather by PHP. But then I'd need an API for every dynamic content you see there (counters for read articles, latest articles and whatnot).
The easiest way would be to separate both designs entirely, or in other words: Do not embed Flarum but use it as a standalone. But I refuse to go down this path just yet.
EDIT: The last suggestion would also enable the use of an iframe, but I hate iframes...