Fix admin site - Custom admin URL (#5766)

* Update config template file

* Add entry to docs

* Add INVENTREE_ADMIN_ENABLED to settings.py

* Add helper functions for improving admin links

* Refactor existing admin links

* remove debug statements

* Fix custom admin URL

* Expand documentation

* Fix URL

* Improve wording in config_template.yaml

* Extend admin_url tag

- Allow lookup without pk
- Handle case where pk not found
This commit is contained in:
Oliver authored and GitHub committed 2023-10-21 22:12:14 +11:00
1 parent 388b722de1
commit b335728e29
21 files changed
+130 -53

No files matched your search

@@ -1,10 +1,11 @@
{% extends "registration/logged_out.html" %}
{% load i18n %}
{% load inventree_extras %}
{% block content %}
<p>{% translate "You were logged out successfully." %}</p>
<p><a href="{% url 'admin:index' %}">{% translate 'Log in again' %}</a></p>
<p><a href="{% url 'index' %}">{% translate 'Log in again' %}</a></p>
{% endblock content %}