mirror of
https://github.com/django/daphne.git
synced 2025-07-15 10:22:17 +03:00
Fix for Django 1.8/1.9
This commit is contained in:
parent
500f0fdeb7
commit
fe352542cc
|
@ -80,7 +80,10 @@ def get_channel_layer(alias="default"):
|
|||
"""
|
||||
Returns the raw ASGI channel layer for this project.
|
||||
"""
|
||||
django.setup(set_prefix=False)
|
||||
if django.VERSION[1] > 9:
|
||||
django.setup(set_prefix=False)
|
||||
else:
|
||||
django.setup()
|
||||
return channel_layers[alias].channel_layer
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user