text: """
  Django settings for eventmanager project.
  
  Generated by 'django-admin startproject' using Django 2.0.5.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/2.0/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/2.0/ref/settings/
  """
  
  import os
  
  # 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.0/howto/deployment/checklist/
  
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = '6&ye$pg!^+x0-$7z%vk12h*&xkl929c6n$pmht7q5qj2@p1+h6'
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS = ['0.0.0.0']
  
  
  # Application definition
  
  INSTALLED_APPS = [
      'jet.dashboard',
      'jet',
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.humanize',
      'django.contrib.messages',
      'django.contrib.sessions',
      'django.contrib.staticfiles',
      'crispy_forms',
      'django_cleanup.apps.CleanupConfig',
      'django_countries',
      'notifications',
      'rest_framework',
      'rest_framework_swagger',
      'rest_framework.authtoken',
      'rest_auth',
      'social_django',
      'import_export',
      'tinymce',
      'hitcount',
      'accounts',
      'api',
      'categories',
      'custom_errors',
      'events',
      'exporting',
      'tasks',
      'homepage',
      'stats',
  ]
  
  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',
      'social_django.middleware.SocialAuthExceptionMiddleware',
  ]
  
  ROOT_URLCONF = 'eventmanager.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',
                  'social_django.context_processors.backends',
                  'social_django.context_processors.login_redirect',
              ],
          },
      },
  ]
  
  AUTHENTICATION_BACKENDS = (
      'django.contrib.auth.backends.ModelBackend',
      'social_core.backends.github.GithubOAuth2',
  )
  
  WSGI_APPLICATION = 'eventmanager.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/2.0/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.mysql',
          'NAME': 'eventmanager',
                  'USER': 'eventmanager',
                  'PASSWORD': 'eventmanager',
                  'HOST': 'db',
                  'TEST': {
                          'NAME': 'mytestdatabase',
                  },
      }
  }
  
  # DATABASES = {
  #     'default': {
  #         'ENGINE': 'django.db.backends.sqlite3',
  #         'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
  #     }
  # }
  
  # Password validation
  # https://docs.djangoproject.com/en/2.0/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.0/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.0/howto/static-files/
  PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
  
  STATICFILES_DIRS = (
      os.path.join(BASE_DIR, 'static'),
  )
  
  STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')
  STATIC_URL = '/static/'
  
  STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')
  
  STORAGE_URL = '/storage/'
  STORAGE_ROOT = os.path.abspath(os.path.join(BASE_DIR, 'storage'))
  
  MEDIA_URL = '/media/'
  MEDIA_ROOT = os.path.abspath(os.path.join(BASE_DIR, 'media'))
  
  # RSS Feed
  EVENTS_IN_FEED = 20
  
  CRISPY_TEMPLATE_PACK = 'bootstrap4'
  
  # login url for socail-auth
  LOGOUT_URL = 'accounts.signout'
  LOGIN_REDIRECT_URL = 'accounts.home'
  
  SOCIAL_AUTH_GITHUB_KEY = ''
  SOCIAL_AUTH_GITHUB_SECRET = ''
  
  # determines if the library will use database transactions on data import
  IMPORT_EXPORT_USE_TRANSACTIONS = True
  
  TEMPLATE_CONTEXT_PROCESSORS = (
      'django.core.context_processors.request',
  )
  
  JET_THEMES = [
      {
          'theme': 'default',
          'color': '#222',
          'title': 'Light Gray'
      },
      {
          'theme': 'green',
          'color': '#44b78b',
          'title': 'Green'
      },
      {
          'theme': 'light-green',
          'color': '#2faa60',
          'title': 'Light Green'
      },
      {
          'theme': 'light-violet',
          'color': '#a464c4',
          'title': 'Light Violet'
      },
      {
          'theme': 'light-blue',
          'color': '#5EADDE',
          'title': 'Light Blue'
      },
  ]
  
  JET_SIDE_MENU_COMPACT = True
  JET_CHANGE_FORM_SIBLING_LINKS = True
  JET_INDEX_DASHBOARD = 'jet.dashboard.dashboard.DefaultIndexDashboard'
  JET_APP_INDEX_DASHBOARD = 'jet.dashboard.dashboard.DefaultAppIndexDashboard'
  
  
  REST_FRAMEWORK = {
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rest_framework.authentication.BasicAuthentication',
          'rest_framework.authentication.SessionAuthentication',
      )
  }
  
  try:
      from eventmanager.local_settings import *
  except ImportError:
      pass
  