Skip to content

Commit c32b050

Browse files
authored
Use native Django admin interface to support dark mode (#2866)
1 parent 1933ef5 commit c32b050

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

base-requirements.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
dj-database-url==0.5.0
22
django-pipeline==3.1.0 # 3.0.0 is first version that supports Django 4.2
33
django-sitetree==1.18.0 # >=1.17.1 is (?) first version that supports Django 4.2
4-
django-apptemplates==1.5
5-
django-admin-interface==0.28.9
6-
django-translation-aliases==0.1.0
74
Django==4.2.27
85
docutils==0.21.2
96
Markdown==3.7

pydotorg/settings/base.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,9 @@
123123
TEMPLATES = [
124124
{
125125
'BACKEND': 'django.template.backends.django.DjangoTemplates',
126-
'DIRS': [
127-
TEMPLATES_DIR,
128-
],
126+
'DIRS': [TEMPLATES_DIR],
127+
'APP_DIRS': True,
129128
'OPTIONS': {
130-
'loaders': [
131-
'apptemplates.Loader',
132-
'django.template.loaders.filesystem.Loader',
133-
'django.template.loaders.app_directories.Loader',
134-
],
135129
'context_processors': [
136130
'django.template.context_processors.debug',
137131
'django.template.context_processors.i18n',
@@ -190,13 +184,10 @@
190184
'django.contrib.staticfiles',
191185
'django.contrib.humanize',
192186

193-
'admin_interface',
194-
'colorfield',
195187
'django.contrib.admin',
196188
'django.contrib.admindocs',
197189

198190
'django_celery_beat',
199-
'django_translation_aliases',
200191
'pipeline',
201192
'sitetree',
202193
'imagekit',

templates/admin/base_site.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{% extends "admin_interface:admin/base_site.html" %}
1+
{% extends "admin/base.html" %}
22
{% load i18n %}
33

44
{% block title %}{{ title }} | {% trans 'python.org' %}{% endblock %}
55

66
{% block branding %}
7-
<h1 id="site-name">{% trans 'python.org administration' %}</h1>
7+
<h1 id="site-name"><a href="{% url 'admin:index' %}">{% trans 'python.org administration' %}</a></h1>
88
{% endblock %}
99

1010
{% block nav-global %}{% endblock %}

0 commit comments

Comments
 (0)