customise django admin
This commit is contained in:
@@ -36,6 +36,11 @@ class CustomFlatPageAdmin(FlatPageAdmin):
|
|||||||
list_filter = ("registration_required",)
|
list_filter = ("registration_required",)
|
||||||
|
|
||||||
|
|
||||||
|
# Customise the Django Admin
|
||||||
|
admin.site.index_title = "FET"
|
||||||
|
admin.site.site_header = "Admin"
|
||||||
|
admin.site.site_title = "Admin"
|
||||||
|
|
||||||
# Re-register FlatPageAdmin
|
# Re-register FlatPageAdmin
|
||||||
admin.site.unregister(FlatPage)
|
admin.site.unregister(FlatPage)
|
||||||
admin.site.register(CustomFlatPage, CustomFlatPageAdmin)
|
admin.site.register(CustomFlatPage, CustomFlatPageAdmin)
|
||||||
|
|||||||
@@ -12,15 +12,6 @@
|
|||||||
{% if site_url %}
|
{% if site_url %}
|
||||||
<a class="button" href="{{ site_url }}">Zurück zur FET Homepage</a>
|
<a class="button" href="{{ site_url }}">Zurück zur FET Homepage</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if user.is_active and user.is_staff %}
|
|
||||||
{% url 'django-admindocs-docroot' as docsroot %}
|
|
||||||
{% if docsroot %}
|
|
||||||
<a class="button" href="{{ docsroot }}">{% translate 'Documentation' %}</a>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
{% if user.has_usable_password %}
|
|
||||||
<a class="button" href="{% url 'admin:password_change' %}">{% translate 'Change password' %}</a>
|
|
||||||
{% endif %}
|
|
||||||
<a class="button" href="{% url 'admin:logout' %}">{% translate 'Log out' %}</a>
|
<a class="button" href="{% url 'admin:logout' %}">{% translate 'Log out' %}</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
8
fet2020/templates/admin/base_site.html
Normal file
8
fet2020/templates/admin/base_site.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{% extends "admin/base_site.html" %}
|
||||||
|
{% load static %}
|
||||||
|
|
||||||
|
{% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} - {{ site_title|default:_('Django site admin') }}{% endblock %}
|
||||||
|
|
||||||
|
{% block extrahead %}
|
||||||
|
<link rel="shortcut icon" type="image/png" href="{% static 'img/fet_logo_white.png' %}"/>
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user