encoding utf-8 mode python import os path PROJECT_ROOT os path normpat

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# -*- encoding: utf-8 mode: python -*-
import os.path
PROJECT_ROOT = os.path.normpath(os.path.dirname(__file__))
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'web_brains'
DATABASE_USER = 'web'
DATABASE_PASSWORD = 'web-**'
BLOG_NAME = u'Веб-мозги'
TAGLINE = u'Блог про питон и джангу'
FOOTER = u'(c) 2007-2008 <a href="/about/">Grigoriy Petukhov</a>'
DEFAULT_FROM_EMAIL = u'%s <byteflow@web-brains.com>' % BLOG_NAME
# Uncomment to get reports of errors by email
ADMINS = (('Grigoriy', 'lizendir@gmail.com'), )
# You may place templates for rendering HTML to the ../themes/{{ THEME }}/ directory.
# They will override the templates with the same name from ../templates/ directory.
THEME = 'lite'
# Sample static pages links
STATIC_PAGES = (
('About', '/about/', u'Про меня'),
('Blog', '/', u'Начало'),
)
# Set this to true to get first comment by any user autoapproved
# This makes sense if captcha is enabled
ANONYMOUS_COMMENTS_APPROVED = True
# Possible choices are: ''|'simple'|'recaptcha'
# To utilize recaptcha you must get public/private keys
# from http://recaptcha.net/
CAPTCHA='simple'
RECAPTCHA_PUBLIC_KEY = ''
RECAPTCHA_PRIVATE_KEY =''
GA_ACC = '' # Google Analytics account
LI_ACC = True # Set True if you want liveinternet.ru counter
GRAVATAR_ENABLE = False # Enable gravatars?
SHORT_POSTS_IN_FEED = False # Full or short posts in feed
WYSIWYG_ENABLE = False # WYSIWYG for post text in admin
RENDER_METHOD = 'bbcode' # Choices: bbcode and simple. Don't use html here, it is unsafe
MAINTENANCE_MODE = False # Set True if you want to put site in maitenance (offline) mode
# Format: {"feedname": "feedburnername"}, where:
# - `feedname` is name of your feed in byteflow (f.e. "blog" or "tag/django")
# - `feedburnername` is name of your feed in FeedBurner (f.e. "AmazonByteflow")
FEEDBURNER = {}
# SOCIAL_BOOKMARKS can be reconfigured to contain values from apps/blog/templatetags/bookmarks.py
# BLOG_URLCONF_ROOT can be set if you want to remove 'blog/' prefix
#BLOG_URLCONF_ROOT = '/'
# URL_PREFIX can be set to add url prefix to *all* urls
# Set it to True if you want to activate orm_debug template tag
# You also need to setup INTERNAL_IPS setting
# if you want to use explain feature of orm_debug
ORM_DEBUG = False
# Livejournal crossposting
LJ_USERNAME = ''
LJ_PASSWORD = ''
# sape.ru settings
SAPE_USER = '74947f25f25d6eb17e910005cbeaa8e6' # You sape.ru ID
SAPE_DB_FILE = os.path.join(PROJECT_ROOT, 'local', 'sape.links') # Links cache file. Check permissions!
SAPE_VERBOSE = True # Set to True if you want see error messages when something goes wrong
ADDITIONAL_APPS = (
'recaptcha',
'pingback',
'watchlist', # comments subscription
'blogroll',
'robots',
# 'debug', # debug sql query
# 'livejournal', # livejournal crossposting
# 'textblocks',
# 'wpimport',
'sape',
)
# DEBUG must be False in production mode
# Please read http://byteflow.su/wiki/DEBUG
DEBUG = True