old_contents: from .common import *
  
  SECRET_KEY = os.environ['SECRET_KEY']
  
  DEBUG = False
  
  ALLOWED_HOSTS = ['www.projekt-tomo.si']
  
  WSGI_APPLICATION = 'web.wsgi.arnes.application'
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': 'tomo',
          'USER': 'tomo',
          'PASSWORD': 'tomo',
          'HOST': 'db',
          'PORT': '',
      }
  }
  
  STATIC_ROOT = '/home/tomo/projekt-tomo/web/static'
  STATIC_URL = '/static/'
  
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'shibboleth.middleware.ShibbolethRemoteUserMiddleware',
      'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
      'simple_history.middleware.HistoryRequestMiddleware'
  )
  
  SHIBBOLETH_ATTRIBUTE_MAP = {
     "mail": (True, "username"),
     "givenName": (True, "first_name"),
     "sn": (True, "last_name"),
     "mail": (False, "email"),
  }
  
  LOGIN_REDIRECT_URL = '/'
  SUBMISSION_URL = 'https://www.projekt-tomo.si'
  
  AUTHENTICATION_BACKENDS = (
      'social.backends.google.GoogleOAuth2',
      'social.backends.facebook.FacebookOAuth2',
      'django.contrib.auth.backends.ModelBackend',
      'shibboleth.backends.ShibbolethRemoteUserBackend',
  )
  
  SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = os.environ['SOCIAL_AUTH_GOOGLE_OAUTH2_KEY']
  SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = os.environ['SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET']
  SOCIAL_AUTH_FACEBOOK_KEY = os.environ['SOCIAL_AUTH_FACEBOOK_KEY']
  SOCIAL_AUTH_FACEBOOK_SECRET = os.environ['SOCIAL_AUTH_FACEBOOK_SECRET']
  SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
  SOCIAL_AUTH_USER_MODEL = 'users.User'
  
new_contents: from .common import *
  
  SECRET_KEY = os.environ['SECRET_KEY']
  
  DEBUG = False
  
  ALLOWED_HOSTS = ['www.projekt-tomo.si']
  
  WSGI_APPLICATION = 'web.wsgi.arnes.application'
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': 'tomo',
          'USER': 'tomo',
          'PASSWORD': 'tomo',
          'HOST': 'db',
          'PORT': '',
      }
  }
  
  STATIC_ROOT = '/home/tomo/projekt-tomo/web/static'
  STATIC_URL = '/static/'
  
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.locale.LocaleMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'shibboleth.middleware.ShibbolethRemoteUserMiddleware',
      'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
      'simple_history.middleware.HistoryRequestMiddleware'
  )
  
  SHIBBOLETH_ATTRIBUTE_MAP = {
     "mail": (True, "username"),
     "givenName": (True, "first_name"),
     "sn": (True, "last_name"),
     "mail": (False, "email"),
  }
  
  LOGIN_REDIRECT_URL = '/'
  SUBMISSION_URL = 'https://www.projekt-tomo.si'
  
  AUTHENTICATION_BACKENDS = (
      'social.backends.google.GoogleOAuth2',
      'social.backends.facebook.FacebookOAuth2',
      'django.contrib.auth.backends.ModelBackend',
      'shibboleth.backends.ShibbolethRemoteUserBackend',
  )
  
  SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = os.environ['SOCIAL_AUTH_GOOGLE_OAUTH2_KEY']
  SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = os.environ['SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET']
  SOCIAL_AUTH_FACEBOOK_KEY = os.environ['SOCIAL_AUTH_FACEBOOK_KEY']
  SOCIAL_AUTH_FACEBOOK_SECRET = os.environ['SOCIAL_AUTH_FACEBOOK_SECRET']
  SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
  SOCIAL_AUTH_USER_MODEL = 'users.User'
  
subject: Add LocaleMiddleware to arnes settings