evennia.web.urls¶
File that determines what each URL points to. This uses Python regular expressions. This is the starting point when a user enters an URL.
The URL is matched with a regex, tying it to a given view. Note that this central url.py file includes url.py from all the various web-components found in views/ so the search space is much larger than what is shown here.
The view (a Python function or class is executed)
The view uses a template (a HTML file which may contain template markers for dynamically modifying its contents; the locations of such templates are given by settings.TEMPLATES[0][‘DIRS’]) and which may in turn may include static assets (CSS, images etc).
The view ‘renders’ the template into a finished HTML page, replacing all dynamic content as appropriate.
The HTML page is returned to the user.