| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- # -*- coding: utf-8 -*-
- """
- Django settings for record 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/
- """
- # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
- import os
- from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
- BASE_DIR = os.path.dirname(os.path.dirname(__file__))
- # 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 = ')-s&c_)jnmzoslf=9rnav9qqadd#l$46jt+m51ppu!lril3g89'
- # SECURITY WARNING: don't run with debug turned on in production!
- DEBUG = True
- TEMPLATE_DEBUG = True
- ALLOWED_HOSTS = []
- # Application definition
- INSTALLED_APPS = (
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'inplaceeditform',
- 'django_tables2',
- 'sorl.thumbnail',
- 'asuzr',
- )
- 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',
- 'gadjo.requestprovider.middleware.RequestProvider',
- )
- ROOT_URLCONF = 'record.urls'
- WSGI_APPLICATION = 'record.wsgi.application'
- # Database
- # https://docs.djangoproject.com/en/1.6/ref/settings/#databases
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
- }
- }
- # Internationalization
- # https://docs.djangoproject.com/en/1.6/topics/i18n/
- LANGUAGE_CODE = 'ru-RU'
- TIME_ZONE = 'Asia/Yekaterinburg'
- USE_I18N = True
- USE_L10N = False
- USE_TZ = True
- DATE_FORMAT = 'd.m.Y'
- DATETIME_FORMAT = 'd.m.Y H:i:s'
- DATE_INPUT_FORMATS = ('%d.%m.%Y',)
- DATETIME_INPUT_FORMATS = ('%d.%m.%Y %H:%M:%S',)
- FIRST_DAY_OF_WEEK = 1
- # Static files (CSS, JavaScript, Images)
- # https://docs.djangoproject.com/en/1.6/howto/static-files/
- STATIC_URL = '/static/'
- ADMIN_MEDIA_PREFIX = '/static/admin/'
- TEMPLATE_DIRS = ('templates/',)
- TEMPLATE_CONTEXT_PROCESSORS += ('django.core.context_processors.request',
- 'django.core.context_processors.csrf',
- )
- MEDIA_ROOT = 'media/'
- MEDIA_URL = 'http://127.0.0.1:8000/media/'
- THUMBNAIL_ENGINE = 'sorl.thumbnail.engines.convert_engine.Engine'
- INPLACEEDIT_EVENT = 'click'
- INPLACEEDIT_SUCCESS_TEXT = u'Сохранено'
- from django.utils.safestring import mark_safe
- INPLACEEDIT_EDIT_EMPTY_VALUE = mark_safe(u'<div class="gray">Редактировать</div>')
- ADAPTOR_INPLACEEDIT_EDIT = 'inplaceeditform.perms.AdminDjangoPermEditInline'
|