Skip to content

Commit

Permalink
build(deps): update to django3
Browse files Browse the repository at this point in the history
  • Loading branch information
Laur04 committed Aug 14, 2021
1 parent 2700873 commit 0e55b80
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Ion.egg-info/requires.txt
Expand Up @@ -11,7 +11,7 @@ channels-redis==3.2.0
contextlib2==0.6.0.post1
cryptography==3.4.7
decorator==5.0.9
Django==2.2.24
Django==3.2.6
django-cacheops==6.0
django-cors-headers==3.7.0
django-debug-toolbar==3.2.1
Expand Down
2 changes: 1 addition & 1 deletion docs/rtd-requirements.txt
Expand Up @@ -11,7 +11,7 @@ channels-redis==3.2.0
contextlib2==0.6.0.post1
cryptography==3.4.7
decorator==5.0.9
Django==2.2.24
Django==3.2.6
django-cacheops==6.0
django-cors-headers==3.7.0
django-debug-toolbar==3.2.1
Expand Down
1 change: 0 additions & 1 deletion intranet/apps/auth/__init__.py
@@ -1 +0,0 @@
default_app_config = "intranet.apps.auth.apps.AuthConfig"
4 changes: 3 additions & 1 deletion intranet/routing.py
Expand Up @@ -8,6 +8,7 @@
from channels.generic.websocket import WebsocketConsumer
from channels.routing import ProtocolTypeRouter, URLRouter

from django.core.asgi import get_asgi_application
from django.urls import re_path

from .apps.bus.consumers import BusConsumer
Expand All @@ -28,6 +29,7 @@ def disconnect(self, code):

application = ProtocolTypeRouter(
{
"http": get_asgi_application(),
"websocket": AuthMiddlewareStack(
URLRouter(
[
Expand All @@ -37,6 +39,6 @@ def disconnect(self, code):
re_path(r"^.*$", WebsocketCloseConsumer.as_asgi()),
]
)
)
),
}
)
3 changes: 3 additions & 0 deletions pytest.ini
Expand Up @@ -4,3 +4,6 @@ python_files = tests.py test_*.py
filterwarnings = error
# Suppress an pysftp warning about not having any ssh known_hosts.
ignore:Failed to load HostKeys:UserWarning:pysftp
# Suppress a warning caused by third party libraries
ignore::django.utils.deprecation.RemovedInDjango40Warning
ignore::django.utils.deprecation.RemovedInDjango41Warning
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -11,7 +11,7 @@ channels-redis==3.2.0
contextlib2==0.6.0.post1
cryptography==3.4.7
decorator==5.0.9
Django==2.2.24
Django==3.2.6
django-cacheops==6.0
django-cors-headers==3.7.0
django-debug-toolbar==3.2.1
Expand Down

0 comments on commit 0e55b80

Please sign in to comment.