old_contents: """
  Django settings for radius project.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.7/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/1.7/ref/settings/
  """
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  import os
  BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  
  ## Server settings are located in the template file
  # Copy and edit to your needs
  
  try:
      from settings_private import *
  except ImportError:
      raise Exception('Please customize the application first')
      
  ## Application settings - do not change unless you know what you're doing!
  
  # Application definition
  
  TEMPLATE_CONTEXT_PROCESSORS = (
      "django.contrib.auth.context_processors.auth",
      "django.core.context_processors.debug",
      "django.core.context_processors.i18n",
      "django.core.context_processors.media",
      "django.core.context_processors.static",
      "django.core.context_processors.tz",
      "django.contrib.messages.context_processors.messages",
      "django.core.context_processors.request",
  )
  
  INSTALLED_APPS = (
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'bootstrap_pagination',
      'admin_radius',
      #'debug_toolbar',
  )
  
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      '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',
      'privateviews.middleware.LoginRequiredMiddleware',
  )
  
  ROOT_URLCONF = 'radius.urls'
  
  WSGI_APPLICATION = 'radius.wsgi.application'
  
  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")
  
  
  # User authentication
  
  # TODO: use reverse('admin:login')?
  LOGIN_URL = '/admin/login/'
  
  # TODO: same ?
  LOGOUT_URL = '/admin/logout'
  
  LOGIN_REDIRECT_URL = '/'
new_contents: """
  Django settings for radius project.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.7/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/1.7/ref/settings/
  """
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  import os
  BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  
  ## Server settings are located in the template file
  # Copy and edit to your needs
  
  try:
      from settings_private import *
  except ImportError:
      raise Exception('Please customize the application first')
      
  ## Application settings - do not change unless you know what you're doing!
  
  # Application definition
  
  TEMPLATE_CONTEXT_PROCESSORS = (
      "django.contrib.auth.context_processors.auth",
      "django.core.context_processors.debug",
      "django.core.context_processors.i18n",
      "django.core.context_processors.media",
      "django.core.context_processors.static",
      "django.core.context_processors.tz",
      "django.contrib.messages.context_processors.messages",
      "django.core.context_processors.request",
  )
  
  INSTALLED_APPS = (
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'bootstrap_pagination',
      'admin_radius',
      #'debug_toolbar',
  )
  
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      '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',
      'privateviews.middleware.LoginRequiredMiddleware',
  )
  
  ROOT_URLCONF = 'radius.urls'
  
  WSGI_APPLICATION = 'radius.wsgi.application'
  
  USE_I18N = True
  
  LOCALE_PATHS = (
      os.path.join(BASE_DIR, 'locale'),
  )
  
  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")
  
  
  # User authentication
  
  # TODO: use reverse('admin:login')?
  LOGIN_URL = '/admin/login/'
  
  # TODO: same ?
  LOGOUT_URL = '/admin/logout'
  
  LOGIN_REDIRECT_URL = '/'
subject: Add missing settings variable (translations)