SHARE
TWEET

Untitled

a guest Jun 8th, 2017 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # -*- coding: utf-8 -*-
  2. # vim: set ts=4 sw=4 fdm=indent : */
  3.  
  4. # Django settings for dp project.
  5.  
  6. import os, os.path
  7. ROOT_DIR = os.path.normpath(os.path.dirname(__file__))
  8.  
  9. DEBUG = True
  10. TEMPLATE_DEBUG = DEBUG
  11.  
  12. ADMINS = (
  13.     ('Grzegorz Szczepanczyk', 'g.szczepanczyk@kiwitv.pl')
  14. )
  15.  
  16. MANAGERS = ADMINS
  17.  
  18. DATABASES = {
  19.     'default': {
  20.         'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
  21.         'NAME': 'dev.sqlite',                      # Or path to database file if using sqlite3.
  22.         'USER': '',                      # Not used with sqlite3.
  23.         'PASSWORD': '',                  # Not used with sqlite3.
  24.         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
  25.         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
  26.     }
  27. }
  28.  
  29. TIME_ZONE = 'Europe/Warsaw'
  30.  
  31. LANGUAGE_CODE = 'pl'
  32.  
  33. SITE_ID = 1
  34.  
  35. USE_I18N = True
  36.  
  37. USE_L10N = True
  38.  
  39. MEDIA_ROOT = os.path.normpath(os.path.join(ROOT_DIR, '../www/media/'))
  40.  
  41. MEDIA_URL = '/media/'
  42.  
  43. ADMIN_MEDIA_PREFIX = '/media/admin/'
  44.  
  45. SECRET_KEY = '4#*ca=3p@=tu7&bw7x22&es=o0&c+46tq4h%%-hw5d4ke+8c4g'
  46.  
  47. TEMPLATE_LOADERS = (
  48.         'django.template.loaders.filesystem.Loader',
  49.         'django.template.loaders.app_directories.Loader',
  50. )
  51.  
  52. MIDDLEWARE_CLASSES = (
  53.     'django.middleware.common.CommonMiddleware',
  54.     'django.contrib.sessions.middleware.SessionMiddleware',
  55.     'django.middleware.csrf.CsrfViewMiddleware',
  56.     'django.contrib.auth.middleware.AuthenticationMiddleware',
  57.     'django.contrib.messages.middleware.MessageMiddleware',
  58.     'debug_toolbar.middleware.DebugToolbarMiddleware',
  59.     'kiwi.middleware.SSLUserRedirect',
  60. )
  61.  
  62. TEMPLATE_CONTEXT_PROCESSORS = (
  63.     "django.contrib.auth.context_processors.auth",
  64.     "django.core.context_processors.media",
  65.     "kiwi.context_processors.site",
  66.     "django.contrib.messages.context_processors.messages",
  67.     "django.core.context_processors.auth",
  68.     "django.core.context_processors.request",
  69. )
  70.  
  71. ROOT_URLCONF = 'dp.urls'
  72.  
  73. TEMPLATE_DIRS = (
  74.     os.path.join(ROOT_DIR,'templates'),
  75.     os.path.join(ROOT_DIR,'apps/debug_toolbar/templates'),
  76. )
  77.  
  78. INSTALLED_APPS = (
  79.     'django.contrib.auth',
  80.     'django.contrib.contenttypes',
  81.     'django.contrib.sessions',
  82.     'django.contrib.sites',
  83.     'django.contrib.messages',
  84.     'grappelli',
  85.     'django.contrib.admin',
  86.     'django.contrib.admindocs',
  87.     'rotunda',
  88.     'comments',
  89.     'debug_toolbar',
  90.     'mailer',
  91.     'robots',
  92.     'kiwi',
  93.     'filebrowser',
  94. )
  95.  
  96. LANGUAGES = (
  97.     ('pl', 'Po polsku'),
  98.     ('en', 'In english'),
  99. )
  100.  
  101. CACHE_BACKEND = 'dummy:///'
  102.  
  103. #for django_toolbar use
  104. INTERNAL_IPS = ('127.0.0.1',)
  105.  
  106. DEBUG_TOOLBAR_PANELS = (
  107.     'debug_toolbar.panels.version.VersionDebugPanel',
  108.     'debug_toolbar.panels.timer.TimerDebugPanel',
  109.     'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
  110.     'debug_toolbar.panels.headers.HeaderDebugPanel',
  111.     'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
  112.     'debug_toolbar.panels.template.TemplateDebugPanel',
  113.     'debug_toolbar.panels.sql.SQLDebugPanel',
  114.     'debug_toolbar.panels.signals.SignalDebugPanel',
  115.     'debug_toolbar.panels.logger.LoggingPanel',
  116. )
  117.  
  118. ACCOUNT_ACTIVATION_DAYS = 7
  119.  
  120. EMAIL_BACKEND = "mailer.backend.DbBackend"
  121. # email settings:
  122. EMAIL_USE_TLS = True
  123. EMAIL_HOST = 'smtp.gmail.com'
  124. EMAIL_HOST_USER = 'test@network.kiwitv.pl'
  125. EMAIL_HOST_PASSWORD = '...'
  126. EMAIL_PORT = 587
  127. EMAIL_SUBJECT_PREFIX = 'network server testing'
  128. DEFAULT_FROM_EMAIL='test@network.kiwitv.pl'
  129.  
  130. DEFAULT_CHARSET='utf-8'
  131.  
  132. LOGIN_REDIRECT_URL = '/panel/'
  133.  
  134. #GRAPPELLI_ADMIN_TITLE = 'Rotunda admin'
  135. #GRAPPELLI_ADMIN_HEADLINE = 'ROTUNDA'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top