Skip to content

Commit

Permalink
Merge branch 'release/3.1.46'
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelekm committed May 6, 2024
2 parents 419fd04 + 29433ca commit a2bdbc8
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 16 deletions.
2 changes: 2 additions & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[defaults]
ALLOW_WORLD_READABLE_TMPFILES = True
stdout_callback=debug
stderr_callback=debug
4 changes: 2 additions & 2 deletions deployment/ansible/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ papertrail_log_files:
- "/var/log/event-feed.log"
- "/var/log/upstart/otp.log"

postgresql_version: "9.6"
postgresql_package_version: "9.6.*"
postgresql_version: "12"
postgresql_package_version: "12.*.pgdg20.04+1"
postgresql_support_libpq_version: "*"

postgresql_listen_addresses: "*"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# postgresql defaults copied from azavea.postgresql
postgresql_version: "9.6"
postgresql_package_version: "9.6.*"
postgresql_version: "12"
postgresql_package_version: "12.*.*"
postgresql_listen_addresses: localhost
postgresql_port: 5432
postgresql_data_directory: /var/lib/postgresql/{{ postgresql_version }}/main
Expand Down
2 changes: 1 addition & 1 deletion deployment/packer/cac_packer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_ubuntu_ami(region):
creds (Dict): Dictionary containing AWS credentials
"""

response = urllib.urlopen('http://cloud-images.ubuntu.com/query/bionic/'
response = urllib.urlopen('http://cloud-images.ubuntu.com/query/jammy/'
'server/released.current.txt').readlines()
response = [x.decode('utf-8') for x in response]
fieldnames = ['version', 'version_type', 'release_status', 'date',
Expand Down
7 changes: 4 additions & 3 deletions python/cac_tripplanner/cac_tripplanner/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@

USE_I18N = True

USE_L10N = True

USE_TZ = True

# Directory for default featured destinations added in destinations 0012
Expand All @@ -189,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 @@ -314,6 +314,7 @@
"top": "wpadmin.menu.menus.BasicTopMenu",
"left": "wpadmin.menu.menus.BasicLeftMenu",
},
'custom_style': STATIC_URL + 'admin/css/pagination.css',
}
}

Expand Down
3 changes: 1 addition & 2 deletions python/cac_tripplanner/cac_tripplanner/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from django.conf.urls import re_path
from django.urls import include
from django.urls import include, re_path
from django.views.generic import RedirectView
from django.contrib.gis import admin

Expand Down
6 changes: 3 additions & 3 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==3.2.13
Django==4.2.11
django-ckeditor==6.0.0
django-image-cropping==1.5.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: 1 addition & 2 deletions python/cac_tripplanner/shortlinks/test/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from django.conf.urls import re_path
from django.urls import include, path
from django.urls import include, path, re_path
from shortlinks.test.views import stub_view

app_name = 'shortlinks'
Expand Down
2 changes: 1 addition & 1 deletion python/cac_tripplanner/shortlinks/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls import re_path
from django.urls import re_path
from django.views.decorators.csrf import csrf_exempt

from .views import ShortenedLinkRedirectView, ShortenedLinkCreateView
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 a2bdbc8

Please sign in to comment.