Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/v10/urls.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions charting_library_charts/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Comment on lines +24 to +26
Comment on lines +25 to +26
}
}

Expand Down
2 changes: 1 addition & 1 deletion charting_library_charts/urls.py
Original file line number Diff line number Diff line change
@@ -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')),
Expand Down
2 changes: 1 addition & 1 deletion model/models.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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