Apr-19-2017, 06:03 AM
That's the whole point of using wsgi, though. You don't want one url == one file. ALL urls get directed to a single file (normally something like index.py or main.py), which then uses pattern matching (some variant of regular expressions) which matches the url requested with a callable object. In Django, that's the urls.py file. In flask, the convention is to let decorators handle that for you.
But that's not unique to wsgi. Wordpress (which is php) works the same way. As do most php frameworks. Our forum uses a similar setup. It's the main way websites have pretty urls.
But that's not unique to wsgi. Wordpress (which is php) works the same way. As do most php frameworks. Our forum uses a similar setup. It's the main way websites have pretty urls.