Skip to content

Commit

Permalink
fix: Added support for django42
Browse files Browse the repository at this point in the history
  • Loading branch information
zubairshakoorarbisoft committed Sep 14, 2023
1 parent fe8c57b commit 43ba514
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
16 changes: 8 additions & 8 deletions submission_queue/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.urls import re_path
from django.urls import path

from submission_queue.ext_interface import (get_queuelen, get_submission,
put_result)
Expand All @@ -8,21 +8,21 @@
# General
# ------------------------------------------------------------
urlpatterns = [
re_path(r'^login/$', log_in),
re_path(r'^logout/$', log_out),
re_path(r'^status/$', status),
path('login/', log_in),
path('logout/', log_out),
path('status/', status),
]

# LMS-facing interface for queue requests
# ------------------------------------------------------------
urlpatterns += [
re_path(r'^submit/$', submit),
path('submit/', submit),
]

# External pulling interface
# ------------------------------------------------------------
urlpatterns += [
re_path(r'^get_queuelen/$', get_queuelen),
re_path(r'^get_submission/$', get_submission),
re_path(r'^put_result/$', put_result),
path('get_queuelen/', get_queuelen),
path('get_submission/', get_submission),
path('put_result/', put_result),
]
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38-django{32,40},quality
envlist = py38-django{32, 42},quality
skipsdist = True

[pycodestyle]
Expand All @@ -14,6 +14,7 @@ norecursedirs = .* jenkins load_tests log reports script test_framework xqueue
[testenv]
deps =
django32: Django>=3.2,<4.0
django42: Django>=4.2,<4.3
django40: Django>=4.0,<4.1
-r{toxinidir}/requirements/test.txt
passenv =
Expand Down
5 changes: 3 additions & 2 deletions xqueue/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from django.urls import include, re_path
from django.urls import path
from django.urls import include

urlpatterns = [
re_path(r'^xqueue/', include('submission_queue.urls')),
path('xqueue/', include('submission_queue.urls')),
]

0 comments on commit 43ba514

Please sign in to comment.