new_contents: import __main__
  
  import os
  
  from django.utils.translation import ugettext_lazy as _
  
  main_file = __main__.__file__
  
  if os.path.basename(main_file) == 'manage.py':
      BASE_DIR = os.path.dirname(os.path.abspath(main_file))
  elif os.path.basename(main_file) == 'wsgi.py':
      BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(main_file)))
  else:
      raise Exception('Main file is not manage.py nor wsgi.py.')
  
  DAIQUIRI_APP = os.environ['DJANGO_SETTINGS_MODULE'].split('.settings')[0]
  
  DEBUG = False
  
  SITE_ID = 1
  
  HTTPS = False
  
  SECRET_KEY = 'this is not a very secret key'
  
  ALLOWED_HOSTS = ['localhost']
  
  INTERNAL_IPS = ('127.0.0.1',)
  
  ROOT_URLCONF = DAIQUIRI_APP + '.urls'
  
  WSGI_APPLICATION = DAIQUIRI_APP + '.wsgi.application'
  
  DJANGO_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'django.contrib.sites',
  ]
  
  ADDITIONAL_APPS = [
      'rest_framework',
      'django_filters',
      'markdown',
      'compressor',
      'djangobower',
      'widget_tweaks',
      'allauth',
      'allauth.account',
      'allauth.socialaccount',
      'rules'
  ]
  
  MIDDLEWARE_CLASSES = [
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.locale.LocaleMiddleware',
      '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',
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sites.middleware.CurrentSiteMiddleware'
  ]
  
  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',
                  'django_settings_export.settings_export',
              ],
          },
      },
  ]
  
  COMPRESS_PRECOMPILERS = (
      ('text/x-scss', 'django_libsass.SassCompiler'),
  )
  
  LANGUAGE_CODE = 'en-us'
  
  TIME_ZONE = 'UTC'
  
  LOCALE_PATHS = (
      os.path.join(BASE_DIR, 'locale/'),
  )
  
  LANGUAGES = (
      ('en', _('English')),
  )
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  LOGIN_URL = '/accounts/login/'
  LOGIN_REDIRECT_URL = '/'
  LOGOUT_URL = '/accounts/logout/'
  
  MEDIA_URL = '/media/'
  MEDIA_ROOT = os.path.join(BASE_DIR, 'media_root/')
  
  STATIC_URL = '/static/'
  STATIC_ROOT = os.path.join(BASE_DIR, 'static_root/')
  
  STATICFILES_DIRS = (
      os.path.join(BASE_DIR, 'static/'),
  )
  
  STATICFILES_FINDERS = (
      'django.contrib.staticfiles.finders.FileSystemFinder',
      'django.contrib.staticfiles.finders.AppDirectoriesFinder',
      'compressor.finders.CompressorFinder',
      'djangobower.finders.BowerFinder',
  )
  
  AUTHENTICATION_BACKENDS = (
      'rules.permissions.ObjectPermissionBackend',
      'django.contrib.auth.backends.ModelBackend',
      'allauth.account.auth_backends.AuthenticationBackend',
  )
  
  ACCOUNT_ADAPTER = 'daiquiri.auth.adapter.DaiquiriAccountAdapter'
  ACCOUNT_SIGNUP_FORM_CLASS = 'daiquiri.auth.forms.SignupForm'
  ACCOUNT_USER_DISPLAY = 'daiquiri.auth.utils.get_full_name'
  
  BOWER_COMPONENTS_ROOT = os.path.join(BASE_DIR, 'bower_root/')
  
  BOWER_INSTALLED_APPS = (
      'angular#1.5.8',
      'angular-resource#1.5.8',
      'bootstrap#3.3.7',
      'ngInfiniteScroll#1.3.0',
      'codemirror#~5.18.2',
      'components-font-awesome#~4.6.3',
      'moment#~2.14.1',
      'angular-file-saver'
  )
  
  SETTINGS_EXPORT = [
      'LOGIN_URL',
      'LOGOUT_URL',
      'QUERY'
  ]
  
  EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  EMAIL_FROM = 'info@example.com'
  
subject: move common settings to daiquiri.core