Fix version import during pip install

This commit is contained in:
Andrew Godwin 2016-02-21 13:18:57 +00:00
parent 73f840432d
commit ca0d9e9651

View File

@ -3,5 +3,8 @@ __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
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