@ -238,11 +238,19 @@ If you are making a change that will alter the URL of a mod (e.g. a name change
Non-mod pages (such as [the main index of the website](https://modding-openmw.com/)) are defined in various ways.
First, there's the view function. If the page is to be totally static HTML, then you can use the [`static_view()`](https://git.modding-openmw.com/Modding-OpenMW.com/momw/src/commit/cb70febfc71881483fb31d3ba60ea4004139968b/momw/momw/views/utility.py#L20-L21) view function.
If the page needs to be dynamic in some way, then you would define a new view function in the [`dynamicpages.py`](https://git.modding-openmw.com/Modding-OpenMW.com/momw/src/branch/beta/momw/momw/views/dynamicpages.py) file.
In either case, you will also need a `.html` file in the [`templates`](https://git.modding-openmw.com/Modding-OpenMW.com/momw/src/branch/beta/momw/momw/templates) directory.
Then you have the URL route, defined in [`urls.py`](https://git.modding-openmw.com/Modding-OpenMW.com/momw/src/branch/beta/momw/momw/urls.py).
This is how URLs are matched to view functions, see the file for examples of this in action in various ways.
### Edit a non-mod page
Editing a non-mod page isn't much different from adding one. The same patterns apply, except you'd be working with existing content.
If you are making a change that will alter the URL of a page, please see [below](#preserving-old-links) for a note on preserving old links.