"""
Django settings for ticket_system project.

Generated by 'django-admin startproject' using Django 2.2.

For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""

import os
from django.core.exceptions import ImproperlyConfigured

# 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.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'f_(*wrbfu!ye4o3w(+g2rhannx%_@6+3_+xo&j29*rl2v!w9nu'

# 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',
    'helpdesk',
    'bootstrapform',
    'markdown_deux',
    'django.contrib.humanize',
    'django.contrib.sites',
    'chatterbot.ext.django_chatterbot'
]

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'ticket_system.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

WSGI_APPLICATION = 'ticket_system.wsgi.application'


# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases


DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'USER': 'gv',
		'PASSWORD':'1234',
		'HOST': 'localhost',
        'NAME': 'ticket_system',
    },
}

#
# Chatterbot

CHATTERBOT = {
    'name': 'Tech Support Bot',
    'logic_adapters': [
        'chatterbot.logic.MathematicalEvaluation',
        'chatterbot.logic.TimeLogicAdapter',
        'chatterbot.logic.BestMatch'
    ],
    'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer',
    'training_data': [
         'chatterbot.corpus.english.greetings'
    ]
}


# Password validation
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]


# Internationalization
# https://docs.djangoproject.com/en/2.2/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')



# django-helpdesk configuration settings
# You can override django-helpdesk's defaults by redefining them here.
# To see what settings are available, see the docs/configuration.rst
# file for more information.
# Some common settings are below.

HELPDESK_DEFAULT_SETTINGS = {
            'use_email_as_submitter': True,
            'email_on_ticket_assign': True,
            'email_on_ticket_change': True,
            'login_view_ticketlist': True,
            'email_on_ticket_apichange': True,
            'preset_replies': True,
            'tickets_per_page': 25
}

LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/login/'

# Default site id added for enabling the app on a single host 
SITE_ID = 1

# Sessions
SESSION_COOKIE_AGE = 86400 # = 1 day

# Email Configuration
#EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
#EMAIL_HOST = 'smtp.example.com'
#EMAIL_PORT = '25'

# Fixtures
FIXTURE_DIRS = [os.path.join(BASE_DIR, 'fixtures')]
try:
    from .local_settings import *
except ImportError:
    pass

HAS_TAG_SUPPORT = False


# raises a 404 to anon users. It's like it was invisible
HELPDESK_ANON_ACCESS_RAISES_404 = False

# show knowledgebase links?
HELPDESK_KB_ENABLED = True

# Should the public web portal be enabled?
HELPDESK_PUBLIC_ENABLED = True
HELPDESK_VIEW_A_TICKET_PUBLIC = True
HELPDESK_SUBMIT_A_TICKET_PUBLIC = True

# Should the Knowledgebase be enabled?
HELPDESK_KB_ENABLED = True

# Allow users to change their passwords
HELPDESK_SHOW_CHANGE_PASSWORD = True

# Instead of showing the public web portal first,
# we can instead redirect users straight to the login page.
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False

# show extended navigation by default, to all users, irrespective of staff status?
HELPDESK_NAVIGATION_ENABLED = False

# use public CDNs to serve jquery and other javascript by default?
# otherwise, use built-in static copy
HELPDESK_USE_CDN = False

# show dropdown list of languages that ticket comments can be translated into?
HELPDESK_TRANSLATE_TICKET_COMMENTS = False

# list of languages to offer. if set to false,
# all default google translate languages will be shown.
HELPDESK_TRANSLATE_TICKET_COMMENTS_LANG = ["en", "de", "es", "fr", "it", "ru"]


# show link to 'change password' on 'User Settings' page?
HELPDESK_SHOW_CHANGE_PASSWORD = False

# allow user to override default layout for 'followups' - work in progress.
HELPDESK_FOLLOWUP_MOD = False

# auto-subscribe user to ticket if (s)he responds to a ticket?
HELPDESK_AUTO_SUBSCRIBE_ON_TICKET_RESPONSE = False


############################
# options for public pages #
############################

# show 'view a ticket' section on public page?
HELPDESK_VIEW_A_TICKET_PUBLIC = True

# show 'submit a ticket' section on public page?
HELPDESK_SUBMIT_A_TICKET_PUBLIC = True


###################################
# options for update_ticket views #
###################################

# allow non-staff users to interact with tickets?
# this will also change how 'staff_member_required'
# in staff.py will be defined.
HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE = False

# show edit buttons in ticket follow ups.
HELPDESK_SHOW_EDIT_BUTTON_FOLLOW_UP = True

# show delete buttons in ticket follow ups if user is 'superuser'
HELPDESK_SHOW_DELETE_BUTTON_SUPERUSER_FOLLOW_UP = False

# make all updates public by default? this will hide the 'is this update public' checkbox
HELPDESK_UPDATE_PUBLIC_DEFAULT = False

# only show staff users in ticket owner drop-downs
HELPDESK_STAFF_ONLY_TICKET_OWNERS = False

# only show staff users in ticket cc drop-down
HELPDESK_STAFF_ONLY_TICKET_CC = False

# allow the subject to have a configurable template.
HELPDESK_EMAIL_SUBJECT_TEMPLATE = "{{ ticket.ticket }} {{ ticket.title|safe }} %(subject)s"
# since django-helpdesk may not work correctly without the ticket ID
# in the subject, let's do a check for it quick:
if HELPDESK_EMAIL_SUBJECT_TEMPLATE.find("ticket.ticket") < 0:
    raise ImproperlyConfigured

# default fallback locale when queue locale not found
HELPDESK_EMAIL_FALLBACK_LOCALE = 'en'


########################################
# options for staff.create_ticket view #
########################################

# hide the 'assigned to' / 'Case owner' field from the 'create_ticket' view?
HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO = False


#################
# email options #
#################

# default Queue email submission settings
QUEUE_EMAIL_BOX_TYPE = None
QUEUE_EMAIL_BOX_SSL = None
QUEUE_EMAIL_BOX_HOST = None
QUEUE_EMAIL_BOX_USER = None
QUEUE_EMAIL_BOX_PASSWORD = None

# only process emails with a valid tracking ID? (throws away all other mail)
QUEUE_EMAIL_BOX_UPDATE_ONLY = False

# only allow users to access queues that they are members of?
HELPDESK_ENABLE_PER_QUEUE_STAFF_PERMISSION = False






4a6c357dfb0b390b136bd37d582f35144384ab61
<mask token>

<mask token>
try:
    from .local_settings import *
except ImportError:
    pass
<mask token>
if HELPDESK_EMAIL_SUBJECT_TEMPLATE.find('ticket.ticket') < 0:
    raise ImproperlyConfigured
<mask token>

<mask token>
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'f_(*wrbfu!ye4o3w(+g2rhannx%_@6+3_+xo&j29*rl2v!w9nu'
DEBUG = True
ALLOWED_HOSTS = []
INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth',
    'django.contrib.contenttypes', 'django.contrib.sessions',
    'django.contrib.messages', 'django.contrib.staticfiles', 'helpdesk',
    'bootstrapform', 'markdown_deux', 'django.contrib.humanize',
    'django.contrib.sites', 'chatterbot.ext.django_chatterbot']
MIDDLEWARE = ['django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware']
ROOT_URLCONF = 'ticket_system.urls'
TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates',
    'DIRS': [], 'APP_DIRS': True, 'OPTIONS': {'context_processors': [
    'django.template.context_processors.debug',
    'django.template.context_processors.request',
    'django.contrib.auth.context_processors.auth',
    'django.contrib.messages.context_processors.messages']}}]
WSGI_APPLICATION = 'ticket_system.wsgi.application'
DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql', 'USER':
    'gv', 'PASSWORD': '1234', 'HOST': 'localhost', 'NAME': 'ticket_system'}}
CHATTERBOT = {'name': 'Tech Support Bot', 'logic_adapters': [
    'chatterbot.logic.MathematicalEvaluation',
    'chatterbot.logic.TimeLogicAdapter', 'chatterbot.logic.BestMatch'],
    'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer',
    'training_data': ['chatterbot.corpus.english.greetings']}
AUTH_PASSWORD_VALIDATORS = [{'NAME':
    'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'
    }, {'NAME':
    'django.contrib.auth.password_validation.MinimumLengthValidator'}, {
    'NAME':
    'django.contrib.auth.password_validation.CommonPasswordValidator'}, {
    'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator'}
    ]
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
HELPDESK_DEFAULT_SETTINGS = {'use_email_as_submitter': True,
    'email_on_ticket_assign': True, 'email_on_ticket_change': True,
    'login_view_ticketlist': True, 'email_on_ticket_apichange': True,
    'preset_replies': True, 'tickets_per_page': 25}
LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/login/'
SITE_ID = 1
SESSION_COOKIE_AGE = 86400
FIXTURE_DIRS = [os.path.join(BASE_DIR, 'fixtures')]
try:
    from .local_settings import *
except ImportError:
    pass
HAS_TAG_SUPPORT = False
HELPDESK_ANON_ACCESS_RAISES_404 = False
HELPDESK_KB_ENABLED = True
HELPDESK_PUBLIC_ENABLED = True
HELPDESK_VIEW_A_TICKET_PUBLIC = True
HELPDESK_SUBMIT_A_TICKET_PUBLIC = True
HELPDESK_KB_ENABLED = True
HELPDESK_SHOW_CHANGE_PASSWORD = True
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False
HELPDESK_NAVIGATION_ENABLED = False
HELPDESK_USE_CDN = False
HELPDESK_TRANSLATE_TICKET_COMMENTS = False
HELPDESK_TRANSLATE_TICKET_COMMENTS_LANG = ['en', 'de', 'es', 'fr', 'it', 'ru']
HELPDESK_SHOW_CHANGE_PASSWORD = False
HELPDESK_FOLLOWUP_MOD = False
HELPDESK_AUTO_SUBSCRIBE_ON_TICKET_RESPONSE = False
HELPDESK_VIEW_A_TICKET_PUBLIC = True
HELPDESK_SUBMIT_A_TICKET_PUBLIC = True
HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE = False
HELPDESK_SHOW_EDIT_BUTTON_FOLLOW_UP = True
HELPDESK_SHOW_DELETE_BUTTON_SUPERUSER_FOLLOW_UP = False
HELPDESK_UPDATE_PUBLIC_DEFAULT = False
HELPDESK_STAFF_ONLY_TICKET_OWNERS = False
HELPDESK_STAFF_ONLY_TICKET_CC = False
HELPDESK_EMAIL_SUBJECT_TEMPLATE = (
    '{{ ticket.ticket }} {{ ticket.title|safe }} %(subject)s')
if HELPDESK_EMAIL_SUBJECT_TEMPLATE.find('ticket.ticket') < 0:
    raise ImproperlyConfigured
HELPDESK_EMAIL_FALLBACK_LOCALE = 'en'
HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO = False
QUEUE_EMAIL_BOX_TYPE = None
QUEUE_EMAIL_BOX_SSL = None
QUEUE_EMAIL_BOX_HOST = None
QUEUE_EMAIL_BOX_USER = None
QUEUE_EMAIL_BOX_PASSWORD = None
QUEUE_EMAIL_BOX_UPDATE_ONLY = False
HELPDESK_ENABLE_PER_QUEUE_STAFF_PERMISSION = False

<mask token>
import os
from django.core.exceptions import ImproperlyConfigured
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'f_(*wrbfu!ye4o3w(+g2rhannx%_@6+3_+xo&j29*rl2v!w9nu'
DEBUG = True
ALLOWED_HOSTS = []
INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth',
    'django.contrib.contenttypes', 'django.contrib.sessions',
    'django.contrib.messages', 'django.contrib.staticfiles', 'helpdesk',
    'bootstrapform', 'markdown_deux', 'django.contrib.humanize',
    'django.contrib.sites', 'chatterbot.ext.django_chatterbot']
MIDDLEWARE = ['django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware']
ROOT_URLCONF = 'ticket_system.urls'
TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates',
    'DIRS': [], 'APP_DIRS': True, 'OPTIONS': {'context_processors': [
    'django.template.context_processors.debug',
    'django.template.context_processors.request',
    'django.contrib.auth.context_processors.auth',
    'django.contrib.messages.context_processors.messages']}}]
WSGI_APPLICATION = 'ticket_system.wsgi.application'
DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql', 'USER':
    'gv', 'PASSWORD': '1234', 'HOST': 'localhost', 'NAME': 'ticket_system'}}
CHATTERBOT = {'name': 'Tech Support Bot', 'logic_adapters': [
    'chatterbot.logic.MathematicalEvaluation',
    'chatterbot.logic.TimeLogicAdapter', 'chatterbot.logic.BestMatch'],
    'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer',
    'training_data': ['chatterbot.corpus.english.greetings']}
AUTH_PASSWORD_VALIDATORS = [{'NAME':
    'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'
    }, {'NAME':
    'django.contrib.auth.password_validation.MinimumLengthValidator'}, {
    'NAME':
    'django.contrib.auth.password_validation.CommonPasswordValidator'}, {
    'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator'}
    ]
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
HELPDESK_DEFAULT_SETTINGS = {'use_email_as_submitter': True,
    'email_on_ticket_assign': True, 'email_on_ticket_change': True,
    'login_view_ticketlist': True, 'email_on_ticket_apichange': True,
    'preset_replies': True, 'tickets_per_page': 25}
LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/login/'
SITE_ID = 1
SESSION_COOKIE_AGE = 86400
FIXTURE_DIRS = [os.path.join(BASE_DIR, 'fixtures')]
try:
    from .local_settings import *
except ImportError:
    pass
HAS_TAG_SUPPORT = False
HELPDESK_ANON_ACCESS_RAISES_404 = False
HELPDESK_KB_ENABLED = True
HELPDESK_PUBLIC_ENABLED = True
HELPDESK_VIEW_A_TICKET_PUBLIC = True
HELPDESK_SUBMIT_A_TICKET_PUBLIC = True
HELPDESK_KB_ENABLED = True
HELPDESK_SHOW_CHANGE_PASSWORD = True
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False
HELPDESK_NAVIGATION_ENABLED = False
HELPDESK_USE_CDN = False
HELPDESK_TRANSLATE_TICKET_COMMENTS = False
HELPDESK_TRANSLATE_TICKET_COMMENTS_LANG = ['en', 'de', 'es', 'fr', 'it', 'ru']
HELPDESK_SHOW_CHANGE_PASSWORD = False
HELPDESK_FOLLOWUP_MOD = False
HELPDESK_AUTO_SUBSCRIBE_ON_TICKET_RESPONSE = False
HELPDESK_VIEW_A_TICKET_PUBLIC = True
HELPDESK_SUBMIT_A_TICKET_PUBLIC = True
HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE = False
HELPDESK_SHOW_EDIT_BUTTON_FOLLOW_UP = True
HELPDESK_SHOW_DELETE_BUTTON_SUPERUSER_FOLLOW_UP = False
HELPDESK_UPDATE_PUBLIC_DEFAULT = False
HELPDESK_STAFF_ONLY_TICKET_OWNERS = False
HELPDESK_STAFF_ONLY_TICKET_CC = False
HELPDESK_EMAIL_SUBJECT_TEMPLATE = (
    '{{ ticket.ticket }} {{ ticket.title|safe }} %(subject)s')
if HELPDESK_EMAIL_SUBJECT_TEMPLATE.find('ticket.ticket') < 0:
    raise ImproperlyConfigured
HELPDESK_EMAIL_FALLBACK_LOCALE = 'en'
HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO = False
QUEUE_EMAIL_BOX_TYPE = None
QUEUE_EMAIL_BOX_SSL = None
QUEUE_EMAIL_BOX_HOST = None
QUEUE_EMAIL_BOX_USER = None
QUEUE_EMAIL_BOX_PASSWORD = None
QUEUE_EMAIL_BOX_UPDATE_ONLY = False
HELPDESK_ENABLE_PER_QUEUE_STAFF_PERMISSION = False

"""
Django settings for ticket_system project.

Generated by 'django-admin startproject' using Django 2.2.

For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""

import os
from django.core.exceptions import ImproperlyConfigured

# 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.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'f_(*wrbfu!ye4o3w(+g2rhannx%_@6+3_+xo&j29*rl2v!w9nu'

# 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',
    'helpdesk',
    'bootstrapform',
    'markdown_deux',
    'django.contrib.humanize',
    'django.contrib.sites',
    'chatterbot.ext.django_chatterbot'
]

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'ticket_system.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

WSGI_APPLICATION = 'ticket_system.wsgi.application'


# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases


DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'USER': 'gv',
		'PASSWORD':'1234',
		'HOST': 'localhost',
        'NAME': 'ticket_system',
    },
}

#
# Chatterbot

CHATTERBOT = {
    'name': 'Tech Support Bot',
    'logic_adapters': [
        'chatterbot.logic.MathematicalEvaluation',
        'chatterbot.logic.TimeLogicAdapter',
        'chatterbot.logic.BestMatch'
    ],
    'trainer': 'chatterbot.trainers.ChatterBotCorpusTrainer',
    'training_data': [
         'chatterbot.corpus.english.greetings'
    ]
}


# Password validation
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]


# Internationalization
# https://docs.djangoproject.com/en/2.2/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')



# django-helpdesk configuration settings
# You can override django-helpdesk's defaults by redefining them here.
# To see what settings are available, see the docs/configuration.rst
# file for more information.
# Some common settings are below.

HELPDESK_DEFAULT_SETTINGS = {
            'use_email_as_submitter': True,
            'email_on_ticket_assign': True,
            'email_on_ticket_change': True,
            'login_view_ticketlist': True,
            'email_on_ticket_apichange': True,
            'preset_replies': True,
            'tickets_per_page': 25
}

LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/login/'

# Default site id added for enabling the app on a single host 
SITE_ID = 1

# Sessions
SESSION_COOKIE_AGE = 86400 # = 1 day

# Email Configuration
#EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
#EMAIL_HOST = 'smtp.example.com'
#EMAIL_PORT = '25'

# Fixtures
FIXTURE_DIRS = [os.path.join(BASE_DIR, 'fixtures')]
try:
    from .local_settings import *
except ImportError:
    pass

HAS_TAG_SUPPORT = False


# raises a 404 to anon users. It's like it was invisible
HELPDESK_ANON_ACCESS_RAISES_404 = False

# show knowledgebase links?
HELPDESK_KB_ENABLED = True

# Should the public web portal be enabled?
HELPDESK_PUBLIC_ENABLED = True
HELPDESK_VIEW_A_TICKET_PUBLIC = True
HELPDESK_SUBMIT_A_TICKET_PUBLIC = True

# Should the Knowledgebase be enabled?
HELPDESK_KB_ENABLED = True

# Allow users to change their passwords
HELPDESK_SHOW_CHANGE_PASSWORD = True

# Instead of showing the public web portal first,
# we can instead redirect users straight to the login page.
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False

# show extended navigation by default, to all users, irrespective of staff status?
HELPDESK_NAVIGATION_ENABLED = False

# use public CDNs to serve jquery and other javascript by default?
# otherwise, use built-in static copy
HELPDESK_USE_CDN = False

# show dropdown list of languages that ticket comments can be translated into?
HELPDESK_TRANSLATE_TICKET_COMMENTS = False

# list of languages to offer. if set to false,
# all default google translate languages will be shown.
HELPDESK_TRANSLATE_TICKET_COMMENTS_LANG = ["en", "de", "es", "fr", "it", "ru"]


# show link to 'change password' on 'User Settings' page?
HELPDESK_SHOW_CHANGE_PASSWORD = False

# allow user to override default layout for 'followups' - work in progress.
HELPDESK_FOLLOWUP_MOD = False

# auto-subscribe user to ticket if (s)he responds to a ticket?
HELPDESK_AUTO_SUBSCRIBE_ON_TICKET_RESPONSE = False


############################
# options for public pages #
############################

# show 'view a ticket' section on public page?
HELPDESK_VIEW_A_TICKET_PUBLIC = True

# show 'submit a ticket' section on public page?
HELPDESK_SUBMIT_A_TICKET_PUBLIC = True


###################################
# options for update_ticket views #
###################################

# allow non-staff users to interact with tickets?
# this will also change how 'staff_member_required'
# in staff.py will be defined.
HELPDESK_ALLOW_NON_STAFF_TICKET_UPDATE = False

# show edit buttons in ticket follow ups.
HELPDESK_SHOW_EDIT_BUTTON_FOLLOW_UP = True

# show delete buttons in ticket follow ups if user is 'superuser'
HELPDESK_SHOW_DELETE_BUTTON_SUPERUSER_FOLLOW_UP = False

# make all updates public by default? this will hide the 'is this update public' checkbox
HELPDESK_UPDATE_PUBLIC_DEFAULT = False

# only show staff users in ticket owner drop-downs
HELPDESK_STAFF_ONLY_TICKET_OWNERS = False

# only show staff users in ticket cc drop-down
HELPDESK_STAFF_ONLY_TICKET_CC = False

# allow the subject to have a configurable template.
HELPDESK_EMAIL_SUBJECT_TEMPLATE = "{{ ticket.ticket }} {{ ticket.title|safe }} %(subject)s"
# since django-helpdesk may not work correctly without the ticket ID
# in the subject, let's do a check for it quick:
if HELPDESK_EMAIL_SUBJECT_TEMPLATE.find("ticket.ticket") < 0:
    raise ImproperlyConfigured

# default fallback locale when queue locale not found
HELPDESK_EMAIL_FALLBACK_LOCALE = 'en'


########################################
# options for staff.create_ticket view #
########################################

# hide the 'assigned to' / 'Case owner' field from the 'create_ticket' view?
HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO = False


#################
# email options #
#################

# default Queue email submission settings
QUEUE_EMAIL_BOX_TYPE = None
QUEUE_EMAIL_BOX_SSL = None
QUEUE_EMAIL_BOX_HOST = None
QUEUE_EMAIL_BOX_USER = None
QUEUE_EMAIL_BOX_PASSWORD = None

# only process emails with a valid tracking ID? (throws away all other mail)
QUEUE_EMAIL_BOX_UPDATE_ONLY = False

# only allow users to access queues that they are members of?
HELPDESK_ENABLE_PER_QUEUE_STAFF_PERMISSION = False





