Skip to content

Commit

Permalink
fix: decrease channels version becouse of uncompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzniaievdm committed Nov 13, 2023
1 parent 4e83557 commit 2bb4570
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
1 change: 1 addition & 0 deletions backend/backend/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@


os.environ.setdefault("DJANGO_SETTINGS_MODULE", "backend.settings")
print('HERE settings', 'asgii')

application = ProtocolTypeRouter({
"http": get_asgi_application(),
Expand Down
1 change: 0 additions & 1 deletion backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

BASE_DIR = Path(__file__).resolve().parent.parent


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/

Expand Down
2 changes: 1 addition & 1 deletion backend/backend/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from api import ConversationViewSet, UserViewSet, CustomObtainAuthTokenView

router = routers.DefaultRouter()
router.register(r'users', UserViewSet, basename='users')
router.register('users', UserViewSet, basename='users')
router.register('conversations', ConversationViewSet, basename='conversations')

urlpatterns = [
Expand Down
20 changes: 10 additions & 10 deletions backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ gunicorn = "~21.2.0"
django-environ = "~0.11.2"
psycopg2-binary = "~2.9.8"
djangorestframework = "^3.14.0"
channels = "^4.0.0"
channels = "^3.0.4"
redis = "^5.0.1"

[tool.poetry.group.test]
optional = true
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export function Chat() {
},

onClose: (e) => {
console.log(e);
console.log("Disconnected!");
},

Expand Down

0 comments on commit 2bb4570

Please sign in to comment.