Guest User

Untitled

a guest
Feb 13th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.08 KB | None | 0 0
  1. """
  2. Django settings for sitebuilder project.
  3.  
  4. Generated by 'django-admin startproject' using Django 1.8a1.
  5.  
  6. For more information on this file, see
  7. https://docs.djangoproject.com/en/dev/topics/settings/
  8.  
  9. For the full list of settings and their values, see
  10. https://docs.djangoproject.com/en/dev/ref/settings/
  11. """
  12.  
  13. # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  14. import os
  15. BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  16.  
  17.  
  18. # Quick-start development settings - unsuitable for production
  19. # See https://docs.djangoproject.com/en/dev/howto/deployment/checklist/
  20.  
  21. # SECURITY WARNING: keep the secret key used in production secret!
  22. SECRET_KEY = ')ew1ls(3%)6%vca(l_w!^38t=frrt!h%lo3!h73x8623n3p2(d'
  23.  
  24. # SECURITY WARNING: don't run with debug turned on in production!
  25. DEBUG = True
  26.  
  27. TEMPLATE_DEBUG = True
  28.  
  29. ALLOWED_HOSTS = []
  30.  
  31.  
  32. # Application definition
  33.  
  34. INSTALLED_APPS = (
  35.     'django.contrib.admin',
  36.     'django.contrib.auth',
  37.     'django.contrib.contenttypes',
  38.     'django.contrib.sessions',
  39.     'django.contrib.messages',
  40.     'django.contrib.staticfiles',
  41.     'sitebuilder',
  42. )
  43.  
  44. MIDDLEWARE_CLASSES = (
  45.     'django.contrib.sessions.middleware.SessionMiddleware',
  46.     'django.middleware.common.CommonMiddleware',
  47.     'django.middleware.csrf.CsrfViewMiddleware',
  48.     'django.contrib.auth.middleware.AuthenticationMiddleware',
  49.     'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  50.     'django.contrib.messages.middleware.MessageMiddleware',
  51.     'django.middleware.clickjacking.XFrameOptionsMiddleware',
  52.     'django.middleware.security.SecurityMiddleware',
  53. )
  54.  
  55. ROOT_URLCONF = 'sitebuilder.urls'
  56.  
  57. TEMPLATES = [
  58.     {
  59.         'BACKEND': 'django.template.backends.django.DjangoTemplates',
  60.         'DIRS': [
  61.         os.path.join(BASE_DIR, 'templates'),
  62.         ],
  63.         'APP_DIRS': True,
  64.         'OPTIONS': {
  65.             'context_processors': [
  66.                 'django.template.context_processors.debug',
  67.                 'django.template.context_processors.request',
  68.                 'django.contrib.auth.context_processors.auth',
  69.                 'django.contrib.messages.context_processors.messages',
  70.             ],
  71.         },
  72.     },
  73. ]
  74.  
  75. WSGI_APPLICATION = 'sitebuilder.wsgi.application'
  76.  
  77.  
  78. # Database
  79. # https://docs.djangoproject.com/en/dev/ref/settings/#databases
  80.  
  81. DATABASES = {
  82.     'default': {
  83.         'ENGINE': 'django.db.backends.postgresql_psycopg2',
  84.         'NAME': 'sitebuilder',
  85.     'USER': 'nuatha',
  86.     'PASSWORD': '666312',
  87.     'HOST': 'localhost',
  88.     'PORT': '5432',
  89.     }
  90. }
  91.  
  92.  
  93. # Internationalization
  94. # https://docs.djangoproject.com/en/dev/topics/i18n/
  95.  
  96. LANGUAGE_CODE = 'en-us'
  97.  
  98. TIME_ZONE = 'Europe/Moscow'
  99.  
  100. USE_I18N = True
  101.  
  102. USE_L10N = True
  103.  
  104. USE_TZ = False
  105.  
  106.  
  107. # Static files (CSS, JavaScript, Images)
  108. # https://docs.djangoproject.com/en/dev/howto/static-files/
  109.  
  110. STATIC_URL = '/static/'
  111.  
  112. STATICFILES_DIRS = (
  113.     os.path.join(BASE_DIR, 'static'),
  114. )
  115.  
  116. SITE_PAGES_DIR = os.path.join(BASE_DIR,'pages')
  117. SITE_OUTPUT_DIR = os.path.join(BASE_DIR, '_build')
  118. STATIC_ROOT = os.path.join(BASE_DIR , '_build', 'static')
Advertisement
Add Comment
Please, Sign In to add comment