text: """
  Django settings for seadel project.
  
  Generated by 'django-admin startproject' using Django 2.1.2.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/2.1/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/2.1/ref/settings/
  """
  
  import os
  import dj_database_url
  import django_heroku
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  TEMPLATE_DIR = os.path.join(BASE_DIR, 'web/templates/web')
  
  # 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 = '2b@id-_*7r=w4hdjc$oj5(=l0zl5s41tkgh=kk0iop79+e9c2w'
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  # DATABASES = {'default': dj_database_url.config()}
  
  DATABASES = {
       'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
          }
  }
  
  
  ALLOWED_HOSTS = ['seadel.io','seadel.herokuapp.com','localhost', '127.0.0.1']
  ASGI_APPLICATION = "seadel.routing.application"
  
  
  # Application definition
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'django.contrib.sites',
      'web',
      'rest_framework',
      'rest_framework.authtoken',
  
      'allauth',
      'allauth.account',
      # 'allauth.socialaccount',
  
      'rest_auth',
      'rest_auth.registration',
      'crispy_forms',
  
      'webpack_loader',
  
      'users',
  
  
  ]
  
  MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'whitenoise.middleware.WhiteNoiseMiddleware',
      '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 = 'seadel.urls'
  
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [os.path.join(BASE_DIR, 'templates')],
          '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 = 'seadel.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/2.1/ref/settings/#databases
  
  
  
  
  # Password validation
  # https://docs.djangoproject.com/en/2.1/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.1/topics/i18n/
  
  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/')
  
  
  STATICFILES_DIRS = [
      os.path.join(BASE_DIR, 'assets'),
      os.path.join(BASE_DIR, 'frontend/dist'),
  ]
  
  MEDIA_URL = '/media/'
  MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
  
  # Custom User Model
  AUTH_USER_MODEL = 'users.CustomUser'
  
  # Django crispy forms
  CRISPY_TEMPLATE_PACK = 'bootstrap4'
  
  # django.contrib.sites
  SITE_ID = 1
  
  # django.allauth
  ACCOUNT_EMAIL_VERIFICATION = 'none'
  ACCOUNT_EMAIL_REQUIRED = (True)
  
  # Activate Django-Heroku.
  django_heroku.settings(locals())
  
  # Django-rest-framework
  REST_FRAMEWORK = {
      'DEFAULT_AUTHENTICATON_CLASSES':(
          'rest_framework.authentication.TokenAuthentication',
          'rest_framework.authentication.SessionAuthentication',
      ),
      'DEFAULT_PERMISSION_CLASSES':(
          'rest_framework.permissions.IsAuthenticated',
      ),
      # TODO: Do we need pagination?
      'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 
      'PAGE_SIZE':200,
  
  }
  
  
  
  WEBPACK_LOADER = {
      'DEFAULT': {
          'BUNDLE_DIR_NAME': 'dist/',
          'STATS_FILE': os.path.join(BASE_DIR, 'frontend', 'webpack-stats.json'),
      } 
  }