diff --git a/api/v10/urls.py b/api/v10/urls.py index f726671..efda9ad 100644 --- a/api/v10/urls.py +++ b/api/v10/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls import url +from django.urls import re_path as url from . import views from django.views.decorators.csrf import csrf_exempt diff --git a/charting_library_charts/settings.py b/charting_library_charts/settings.py index fec78ed..0b8e5a1 100755 --- a/charting_library_charts/settings.py +++ b/charting_library_charts/settings.py @@ -21,6 +21,9 @@ 'PASSWORD': os.getenv('DB_PASSWORD', 'postgres'), 'HOST': os.getenv('DB_HOST', 'localhost'), 'PORT': int(os.getenv('DB_PORT', '5432')), + 'OPTIONS': { + 'options': '-c timezone=UTC', + }, } } diff --git a/charting_library_charts/urls.py b/charting_library_charts/urls.py index afd0741..cfd4ccd 100644 --- a/charting_library_charts/urls.py +++ b/charting_library_charts/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls import include, url +from django.urls import include, re_path as url urlpatterns = [ url(r'^1\.0/', include('api.v10.urls')), diff --git a/model/models.py b/model/models.py index 2cee86c..85583c6 100755 --- a/model/models.py +++ b/model/models.py @@ -1,6 +1,6 @@ from django.db import models from django_prometheus.models import ExportModelOperationsMixin -from jsonfield import JSONField +from django.db.models import JSONField class Chart(ExportModelOperationsMixin('charts'), models.Model): diff --git a/requirements.txt b/requirements.txt index 90b03b4..eb7c592 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -Django==2.2.28 -psycopg2<2.9 -jsonfield==2.1.1 -django-prometheus==2.2.0 +Django>=4.2.0,<5.0.0 +psycopg2-binary>=2.9.0 +django-prometheus>=2.2.0 +setuptools>=65.0.0