-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit upgrades Django from version 3.2 to 4.2. The package versions for django-essentials, django-lti-login and a-plus-client were also updated. Fixes #43
- Loading branch information
1 parent
7f5f2dd
commit cb2b531
Showing
11 changed files
with
54 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ Requirements | |
------------ | ||
* Python 3.8+ | ||
* RabbitMQ 3.8+ | ||
* Django 3.2 | ||
* Django 4.2 | ||
* Celery 5.2 | ||
* Memcached 1.5 | ||
* and other Python packages, see ``requirements.txt`` | ||
|
@@ -83,4 +83,3 @@ [email protected], 9.2.2015 | |
.. _A+: https://github.com/apluslms/a-plus | ||
.. _Django LTI login: https://github.com/Aalto-LeTech/django-lti-login | ||
.. _greedy string tiling: https://github.com/Aalto-LeTech/greedy-string-tiling | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from django.conf.urls import url | ||
from django.urls import re_path | ||
|
||
from data.views import hook_submission | ||
|
||
|
||
urlpatterns = [ | ||
url(r'^(?P<course_key>\w+)/hook-submission$', hook_submission, name='hook_submission'), | ||
re_path(r'^(?P<course_key>\w+)/hook-submission$', hook_submission, name='hook_submission'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
default_app_config = 'ltilogin.apps.RadarConfig' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,4 +79,3 @@ def add_course_permissions(sender, **kwargs): | |
|
||
|
||
user_logged_in.connect(add_course_permissions) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Django ~= 3.2.18 | ||
Django ~= 4.2.3 | ||
celery >= 5.2.7, < 6 | ||
django-bootstrap-form >= 3.4, < 4 | ||
oauthlib >= 3.2.2, < 4 | ||
requests >= 2.28.2, < 3 | ||
git+https://github.com/apluslms/django-lti-login.git@3.2.0#egg=django-lti-login==3.2.0 | ||
git+https://github.com/apluslms/django-essentials.git@1.5.0#egg=django-essentials==1.5.0 | ||
git+https://github.com/apluslms/a-plus-client.git@v1.2.0#egg=a_plus_client | ||
git+https://github.com/apluslms/django-lti-login.git@3.3.0#egg=django-lti-login==3.3.0 | ||
git+https://github.com/apluslms/django-essentials.git@1.6.0#egg=django-essentials==1.6.0 | ||
git+https://github.com/apluslms/a-plus-client.git@v1.3.0#egg=a_plus_client | ||
git+https://github.com/apluslms/[email protected] | ||
aplus-auth ~= 0.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
def is_ajax(request): | ||
""" | ||
Detect AJAX requests. | ||
Request object method is_ajax() was removed in Django 4.0, this can be used instead. | ||
""" | ||
return request.headers.get('x-requested-with') == 'XMLHttpRequest' |