text: import os
  import warnings
  from django.utils.translation import ugettext_lazy as _
  from os.path import dirname
  
  warnings.simplefilter('error', DeprecationWarning)
  
  BASE_DIR = dirname(dirname(dirname(dirname(os.path.abspath(__file__)))))
  CONTENT_DIR = os.path.join(BASE_DIR, 'content')
  
  SECRET_KEY = 'NhfTvayqggTBPswCXXhWaN69HuglgZIkM'
  
  
  ETSY_BASE_URL = 'https://api.etsy.com/v2/?api_key='
  ETSY_API_KEY = 'db0j199e71iqn3uko7htwzbp'
  
  DEBUG = True
  ALLOWED_HOSTS = ['*']
  
  SITE_ID = 1
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'django.contrib.sites',
      'django_tables2',
      'rest_framework',
      
      # Vendor apps
      'bootstrap4',
  
      # Application apps
      'main',
      'accounts',
      'catalog',
  ]
  
  MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.locale.LocaleMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  ]
  
  ROOT_URLCONF = 'app.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [
              os.path.join(CONTENT_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',
              ],
          },
      },
  ]
  
  
  AUTH_USER_MODEL = 'accounts.UserAccount'
  
  
  WSGI_APPLICATION = 'app.wsgi.application'
  
  EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
  EMAIL_FILE_PATH = os.path.join(CONTENT_DIR, 'tmp/emails')
  EMAIL_HOST_USER = 'test@example.com'
  DEFAULT_FROM_EMAIL = 'test@example.com'
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
  }
  
  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',
      },
  ]
  
  ENABLE_USER_ACTIVATION = True
  DISABLE_USERNAME = False
  LOGIN_VIA_EMAIL = False
  LOGIN_VIA_EMAIL_OR_USERNAME = True
  LOGIN_REDIRECT_URL = 'index'
  LOGIN_URL = 'accounts:log_in'
  USE_REMEMBER_ME = True
  
  RESTORE_PASSWORD_VIA_EMAIL_OR_USERNAME = True
  ENABLE_ACTIVATION_AFTER_EMAIL_CHANGE = True
  
  SIGN_UP_FIELDS = ['username', 'first_name', 'last_name', 'email', 'password1', 'password2']
  if DISABLE_USERNAME:
      SIGN_UP_FIELDS = ['first_name', 'last_name', 'email', 'password1', 'password2']
  
  MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
  
  USE_I18N = True
  USE_L10N = True
  LANGUAGE_CODE = 'en'
  LANGUAGES = [
      ('en', _('English')),
      ('ru', _('Russian')),
      ('zh-Hans', _('Simplified Chinese')),
      ('fr', _('French')),
  ]
  
  TIME_ZONE = 'EST'
  USE_TZ = True
  
  STATIC_ROOT = os.path.join(CONTENT_DIR, 'static')
  STATIC_URL = '/static/'
  STATICFILES_DIRS = [
      os.path.join(CONTENT_DIR, 'assets'),
  ]
  
  
  MEDIA_ROOT = os.path.join(CONTENT_DIR, 'assets/profile_pics/')
  MEDIA_URL = '/media/'
  
  LOCALE_PATHS = [
      os.path.join(CONTENT_DIR, 'locale')
  ]
  