Skip to content

Commit

Permalink
Upgrade to latest Django 4 version
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelekm committed Mar 28, 2024
1 parent 6b46f1e commit 425043a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
5 changes: 4 additions & 1 deletion python/cac_tripplanner/cac_tripplanner/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@

STATIC_URL = "/static/"
STATIC_ROOT = "/srv/cac"
STATICFILES_DIRS = ()
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static/'),
]

MEDIA_ROOT = "/media/cac/"
MEDIA_URL = "/media/"
Expand Down Expand Up @@ -312,6 +314,7 @@
"top": "wpadmin.menu.menus.BasicTopMenu",
"left": "wpadmin.menu.menus.BasicLeftMenu",
},
'custom_style': STATIC_URL + 'admin/css/pagination.css',
}
}

Expand Down
4 changes: 2 additions & 2 deletions python/cac_tripplanner/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
base58==2.0.1
boto3==1.15.9
boto==2.49.0
Django==4.0.1
Django==4.2.11
django-ckeditor==6.0.0
django-image-cropping==1.7.0
django-extensions==3.1.5
django-storages==1.10.1
easy-thumbnails==2.8.1
easy-thumbnails==2.8.5
gunicorn==20.0.4
lxml==4.9.2
Pillow==7.2.0
Expand Down
3 changes: 3 additions & 0 deletions python/cac_tripplanner/static/admin/css/pagination.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#change-history > p.paginator {
width: auto;
}
15 changes: 15 additions & 0 deletions python/cac_tripplanner/templates/admin/base.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
{% extends "admin/base.html" %}
{% load i18n %}
{% block breadcrumbs %}
{% if title != 'Site administration' %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
{% if title %}
{% if title|slice:'-14:' == 'administration' %}
&rsaquo; {{ title|slice:':-14' }}
{% else %}
&rsaquo; {{ title }}
{% endif %}
{% endif %}
</div>
{% endif %}
{% endblock %}
{% load cropping thumbnail %}
{% block extrahead %}
{{ form.media }}
Expand Down

0 comments on commit 425043a

Please sign in to comment.