text: import os
  
  
  ###############
  # Build paths #
  ###############
  
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
  PROJECT_NAME = os.path.basename(BASE_DIR)
  print("##########################")
  print(BASE_DIR)
  print(os.path.join(BASE_DIR, 'templates'))
  
  ############
  # Security #
  ############
  
  DEBUG = True
  
  ALLOWED_HOSTS = ['127.0.0.1:8000', 'localhost']
  
  
  #################
  # Core settings #
  #################
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'django.contrib.humanize',
      'accounts.apps.AccountsConfig',
      'myhealthapp.apps.MyhealthappConfig',
      'bootstrap_datepicker_plus',
      'crispy_forms',
      'django_filters',
      'bootstrap4',
      # 'django_cleanup',
  
      # 'django.contrib.sites',
      # 'allauth',
      # 'allauth.account',
      # 'allauth.socialaccount',
  ]
  
  
  MIDDLEWARE = [
      'debug_toolbar.middleware.DebugToolbarMiddleware',
      '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',
      # 'accounts.middleware.SitePermissionMiddleware',
  ]
  
  
  ROOT_URLCONF = 'config.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 = 'config.wsgi.application'
  
  
  ############
  # Database #
  ############
  
  DATABASES = {}
  
  
  ############
  # Messages #
  ############
  
  MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage'
  
  
  ###########
  # Logging #
  ###########
  
  LOGGING = {}
  
  
  ##################
  # Authentication #
  ##################
  
  AUTH_USER_MODEL = 'accounts.CustomUser'
  
  
  #######################
  # Password validation #
  #######################
  
  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 #
  ########################
  
  LANGUAGE_CODE = 'ja'
  
  TIME_ZONE = 'Asia/Tokyo'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  ################
  # Static files #
  ################
  
  STATIC_URL = '/static/'
  STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
  STATIC_ROOT = '/var/www/{}/static'.format(PROJECT_NAME)
  
  MEDIA_URL = '/media/'
  MEDIA_ROOT = '/var/www/{}/media'.format(PROJECT_NAME)
  
  
  ########################
  # Application settings #
  ########################
  
  # humanize.intcomma
  NUMBER_GROUPING = 3
  
  
  ##########
  # Stripe #
  ##########
  
  STRIPE_API_KEY = '<stripe-api-key>'
  STRIPE_PUBLISHABLE_KEY = '<stripe-publishable-key>'
  
  STATIC_URL = '/static/'
  
  LOGIN_REDIRECT_URL = "accounts:home"
  
  LOGOUT_REDIRECT_URL = "myhealthapp:index"
  
  STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
  