| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| djangoapps | ||
| envs | ||
| lib | ||
| static | ||
| templates | ||
| .coveragerc | ||
| CHANGELOG.md | ||
| __init__.py | ||
| one_time_startup.py | ||
| urls.py | ||
| wsgi.py | ||
| xmodule_namespace.py |
Themes do not necessarily want all of the available LMS routes, such as `/jobs` and `/university_profiles`. This change splits up the `lms/urls.py` file and selectively enables/disables routes based on whether or not a theme is enabled. This is a naive solution for now; a better solution gives themes a way to selectively overrides such routes. Additionally, with the `MKTG_URL_LINK_MAP` setting that hits certain routes immediately on each page render (whenever the `marketing_link` helper function is called), themes may crash if they don't leave all marketing link routes present in `lms/urls.py`. This change also provides the ability to override the `MKTG_URL_LINK_MAP` in the settings. Finally, modify the mitxmako marketing URL middleware to not try to reverse disabled URLs, which are those keys in the map whose values are `None`.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| djangoapps | Loading commit data... | |
| envs | Loading commit data... | |
| lib | Loading commit data... | |
| static | Loading commit data... | |
| templates | Loading commit data... | |
| .coveragerc | Loading commit data... | |
| CHANGELOG.md | Loading commit data... | |
| __init__.py | Loading commit data... | |
| one_time_startup.py | Loading commit data... | |
| urls.py | Loading commit data... | |
| wsgi.py | Loading commit data... | |
| xmodule_namespace.py | Loading commit data... |