old_contents: import os
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
  
  INSTALLED_APPS = (
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'rest_framework',
      'rest_framework.authtoken',
      'corsheaders',
      'alarm',
      'patient',
      'measurement',
      'motivation_text',
      'next_of_kin',
      'threshold_value'
  )
  
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'corsheaders.middleware.CorsMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  )
  
  ROOT_URLCONF = 'api.urls'
  
  WSGI_APPLICATION = 'api.wsgi.application'
  
  # Internationalization
  # https://docs.djangoproject.com/en/1.7/topics/i18n/
  
  LANGUAGE_CODE = 'nb-no'
  
  TIME_ZONE = 'Europe/Oslo'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/1.7/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")
  
  REST_FRAMEWORK = {
      'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),
      'PAGINATE_BY': 1000,
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rest_framework.authentication.TokenAuthentication',
          'rest_framework.authentication.SessionAuthentication',
      )
  }
  
  CORS_ALLOW_CREDENTIALS = True
  
new_contents: import os
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
  
  INSTALLED_APPS = (
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'rest_framework',
      'rest_framework.authtoken',
      'corsheaders',
      'alarm',
      'patient',
      'measurement',
      'motivation_text',
      'next_of_kin',
      'threshold_value'
  )
  
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'corsheaders.middleware.CorsMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  )
  
  ROOT_URLCONF = 'api.urls'
  
  WSGI_APPLICATION = 'api.wsgi.application'
  
  # Internationalization
  # https://docs.djangoproject.com/en/1.7/topics/i18n/
  
  LANGUAGE_CODE = 'nb-no'
  
  TIME_ZONE = 'Europe/Oslo'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/1.7/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")
  
  REST_FRAMEWORK = {
      'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',),
      'PAGINATE_BY': 500,
      'PAGINATE_BY_PARAM': 'page_size',
      'MAX_PAGINATE_BY': 5000,
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rest_framework.authentication.TokenAuthentication',
          'rest_framework.authentication.SessionAuthentication',
      )
  }
  
  CORS_ALLOW_CREDENTIALS = True
  
subject: Implement PAGINATE_BY_PARAM: 'page_size'