__version__ = "0.9"

default_app_config = 'channels.apps.ChannelsConfig'
DEFAULT_CHANNEL_LAYER = 'default'

from .asgi import channel_layers  # NOQA isort:skip
from .channel import Channel, Group  # NOQA isort:skip

__version__ = "0.9"

default_app_config = 'channels.apps.ChannelsConfig'
DEFAULT_CHANNEL_LAYER = 'default'

try:
    from .asgi import channel_layers  # NOQA isort:skip
    from .channel import Channel, Group  # NOQA isort:skip
except ImportError:  # No django installed, allow vars to be read
    pass

Fix version import during pip install
Fix version import during pip install

  __version__ = "0.9"
  
  default_app_config = 'channels.apps.ChannelsConfig'
  DEFAULT_CHANNEL_LAYER = 'default'
  
+ try:
- from .asgi import channel_layers  # NOQA isort:skip
+     from .asgi import channel_layers  # NOQA isort:skip
- from .channel import Channel, Group  # NOQA isort:skip
+     from .channel import Channel, Group  # NOQA isort:skip
+ except ImportError:  # No django installed, allow vars to be read
+     pass
  
Fix version import during pip install
## Code Before:
__version__ = "0.9"

default_app_config = 'channels.apps.ChannelsConfig'
DEFAULT_CHANNEL_LAYER = 'default'

from .asgi import channel_layers  # NOQA isort:skip
from .channel import Channel, Group  # NOQA isort:skip

## Instruction:
Fix version import during pip install
## Code After:
__version__ = "0.9"

default_app_config = 'channels.apps.ChannelsConfig'
DEFAULT_CHANNEL_LAYER = 'default'

try:
    from .asgi import channel_layers  # NOQA isort:skip
    from .channel import Channel, Group  # NOQA isort:skip
except ImportError:  # No django installed, allow vars to be read
    pass
