# Path: django_eventstream/utils.py
# def have_channels():
# 	try:
# 		from channels.generic.http import AsyncHttpConsumer
# 		return True
# 	except ImportError:
# 		return False


import os
import dj_database_url
from django_eventstream.utils import have_channels
https://docs.djangoproject.com/en/2.1/ref/settings/
"""


# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '$(_bts_5if59ns1(7u2!opjy*+3^+pwf_rr8=rm0o8ih+ts9xl'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['*']


# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
]


# Path: django_eventstream/utils.py
# def have_channels():
# 	try:
# 		from channels.generic.http import AsyncHttpConsumer
# 		return True
# 	except ImportError:
# 		return False


# Path: examples/chat/server/settings.py
import os
import dj_database_url
from django_eventstream.utils import have_channels

https://docs.djangoproject.com/en/2.1/ref/settings/
"""


# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '$(_bts_5if59ns1(7u2!opjy*+3^+pwf_rr8=rm0o8ih+ts9xl'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['*']


# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
]


if have_channels():