evennia/evennia/web
2025-12-18 12:42:47 +01:00
..
admin fix(admin): repair Link to Account button (pk→object_id mismatch) 2025-08-19 16:45:20 +01:00
api Fix test_attribute api unit test. Update Changelog 2025-12-18 12:42:47 +01:00
static Fix possible Xscript exploit 2025-06-30 17:20:37 +02:00
templates Make /openapi/setattribute PUT only for REST style compatability 2025-11-19 20:12:27 +01:00
templatetags Move and split views 2021-05-16 21:09:38 +02:00
utils Apply black to codes 2024-04-01 17:51:05 +02:00
webclient Apply black to codes 2024-04-01 17:51:05 +02:00
website Upgrade evennia dependencies and RUN MIGRATIONS. Update requirement to Django 5.3, which has some backwards-incompatible index changes 2025-03-02 11:05:17 +01:00
__init__.py Move and split views 2021-05-16 21:09:38 +02:00
README.md Continue documentation of web components 2021-05-22 16:11:48 +02:00
urls.py Format code imports 2022-11-10 22:21:12 +01:00

Web resources

This folder holds the functioning code, html, js and css files for use by the Evennia website and -client. This is a standard Django web application.

  1. When a user enters an url (or clicks a link) in their web browser, Django will use this incoming request to refer to the urls.py file.
  2. The urls.py file will use regex to match the url to a view - a Python function or callable class. The incoming request data will be passed to this code.
  3. The view will (usually) refer to a template, which is a html document with templating slots that allows the system to replace parts of it with dynamic content (like how many users are currently in-game).
  4. The view will render the template with any context into a final HTML page that is returned to the user to view.

I many ways this works like an Evennia Command, with input being the browser's request and the view being the Command's function body for producing a result.

In the case of the webclient, the html page is rendered once and when doing so it loads a Javascript application in the browser that opens a websocket to communicate with the server.