You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
369 B
14 lines
369 B
from django.conf import settings
|
|
from pusher import Pusher
|
|
|
|
|
|
def pusher():
|
|
try:
|
|
pusher_cluster = settings.PUSHER_CLUSTER
|
|
except AttributeError:
|
|
pusher_cluster = 'mt1'
|
|
|
|
return Pusher(app_id=settings.PUSHER_APP_ID,
|
|
key=settings.PUSHER_KEY,
|
|
secret=settings.PUSHER_SECRET,
|
|
cluster=pusher_cluster)
|
|
|