Skip to content

Commit

Permalink
Fix runserver autoreload with channels 2.4 (#158)
Browse files Browse the repository at this point in the history
* Fix runserver autoreload with channels 2.4

* Update check-manifest configuration
  • Loading branch information
yakky authored May 15, 2020
1 parent c271a61 commit 4c51c98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions app_helper/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,9 @@ def static_analisys(application):

def server(bind="127.0.0.1", port=8000, migrate_cmd=False, verbose=1): # pragma: no cover
try:
from channels.log import setup_logger
from channels.management.commands import runserver

logger = setup_logger("django.channels", 1)
logger = None
use_channels = True
except ImportError:
from django.contrib.staticfiles.management.commands import runserver
Expand Down
1 change: 1 addition & 0 deletions changes/157.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix runserver autoreload with channels 2.4
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ use_parentheses = True

[check-manifest]
ignore =
.[a-z]*
.*
*.ini
*.toml
*.txt
*.yml
app_helper/test_utils/AUTHORS
app_helper/test_utils/example1/locale*
changes*
docs*
app_helper/test_utils/example1/locale/**
changes/**
docs/**
tasks.py

0 comments on commit 4c51c98

Please sign in to comment.