Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 3.1 support, dropped support for django 1.1 #18

Merged
merged 1 commit into from
Feb 22, 2021
Merged
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
6 changes: 3 additions & 3 deletions src/django_healthchecks/urls.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from django.conf.urls import url
from django.urls import path

from django_healthchecks import views

urlpatterns = [
url(r"^$", views.HealthCheckView.as_view(), name="index"),
url(r"^(?P<service>.*)$", views.HealthCheckServiceView.as_view(), name="service"),
path(r"", views.HealthCheckView.as_view(), name="index"),
path(r"<str:service>/", views.HealthCheckServiceView.as_view(), name="service"),
]
6 changes: 3 additions & 3 deletions tests/test_urls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from django.conf.urls import include, url
from django.urls import include, path
from django.contrib import admin

import django_healthchecks.urls

urlpatterns = [
url("^admin/", admin.site.urls),
url("^healthchecks", include(django_healthchecks.urls)),
path("^admin/", admin.site.urls),
path("^healthchecks", include(django_healthchecks.urls)),
]
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[tox]
envlist = py{36,37,38}-django{111,22,30}
envlist = py{36,37,38}-django{22,30,31}

[testenv]
commands = coverage run --parallel -m pytest {posargs}
deps =
django111: Django>=1.11,<1.12
django20: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
extras = test

[testenv:coverage-report]
Expand Down