Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Django settings for Sutora project.
- For more information on this file, see
- https://docs.djangoproject.com/en/1.6/topics/settings/
- For the full list of settings and their values, see
- https://docs.djangoproject.com/en/1.6/ref/settings/
- """
- # -*- coding: utf-8 -*-
- # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
- import os
- SITE_NAME = 'http://www.sutora.ru'
- BASE_DIR = os.path.dirname(os.path.dirname(__file__))
- import datetime
- TEMPLATE_DIRS = (
- os.path.join(os.path.dirname(__file__), 'templates').replace('\\', '/'),
- )
- # -*- coding: utf-8 -*-
- # Quick-start development settings - unsuitable for production
- # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
- # SECURITY WARNING: keep the secret key used in production secret!
- SECRET_KEY = 'z)vax1*%y8341uhf$-zm3ttcxkt6-%bqqmcp)4487leflpjg(q'
- # SECURITY WARNING: don't run with debug turned on in production!
- DEBUG = True
- TEMPLATE_DEBUG = True
- ALLOWED_HOSTS = [
- '.sutora.ru',
- '.sutora.ru.'
- ]
- # Application definition
- INSTALLED_APPS = (
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'paypal.standard.ipn',
- #'south',
- #'debug_toolbar',
- 'mysite',
- 'sorl.thumbnail',
- 'tinymce',
- 'mce_filebrowser',
- 'orders'
- )
- #mail
- EMAIL_HOST = 'smtp.bk.ru'
- EMAIL_HOST_USER = 'atnes@bk.ru'
- EMAIL_HOST_PASSWORD = 'atnes28637'
- EMAIL_PORT = 2525
- EMAIL_USE_TLS = True
- MIDDLEWARE_CLASSES = (
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- )
- ROOT_URLCONF = 'Sutora.urls'
- WSGI_APPLICATION = 'Sutora.wsgi.application'
- TEMPLATE_CONTEXT_PROCESSORS = (
- # other context processors....
- 'django.core.context_processors.static',
- 'django.contrib.auth.context_processors.auth',
- 'mycontext.year_sutora.years',
- )
- # Database
- # https://docs.djangoproject.com/en/1.6/ref/settings/#databases
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': 'u37230', # Or path to database file if using sqlite3.
- # The following settings are not used with sqlite3:
- 'USER': 'u37230',
- 'PASSWORD': 'ops4vqzmiy',
- 'HOST': 'localhost', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
- 'PORT': '',
- }
- }
- # Internationalization
- # https://docs.djangoproject.com/en/1.6/topics/i18n/
- LANGUAGE_CODE = 'ru'
- TIME_ZONE = 'Asia/Yekaterinburg'
- USE_I18N = True
- USE_L10N = True
- USE_TZ = True
- # Static files (CSS, JavaScript, Images)
- # https://docs.djangoproject.com/en/1.6/howto/static-files/
- MEDIA_ROOT = '/home/u37230/sitename.ru/www/media'
- MEDIA_URL = '/media/'
- STATIC_ROOT = '/home/u37230/sitename.ru/www/static'
- STATIC_URL = '/static/'
- STATICFILES_DIRS = (
- os.path.join(BASE_DIR, 'static'),
- )
- #TINYMCE
- TINYMCE_JS_URL = 'tiny_mce/tiny_mce.js'
- TINYMCE_JS_ROOT = 'tiny_mce'
- TINYMCE_DEFAULT_CONFIG = {'theme': "advanced",
- 'theme_advanced_toolbar_location': "top",
- 'height': '400',
- 'skin': "o2k7",
- 'file_browser_callback': 'mce_filebrowser'
- }
- YEAR = datetime.date.today().year
- # PayPal
- PAYPAL_RECEIVER_EMAIL = "atnes-facilitator@bk.ru"
- PAYPAL_TEST = True
- from Sutora.default_models import set_default_models
- #set_default_models()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement