1 |
# -*- mode: python; coding: utf-8; -*- |
2 |
|
3 |
DATABASE_ENGINE = 'sqlite3' # variants: mysql, postgresql_psycopg2 |
4 |
DATABASE_NAME = '' |
5 |
DATABASE_USER = '' |
6 |
DATABASE_PASSWORD = '' |
7 |
|
8 |
# Local time zone for this installation. All choices can be found here: |
9 |
# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE |
10 |
#TIME_ZONE = 'Europe/Kiev' |
11 |
|
12 |
# Language code for this installation. All choices can be found here: |
13 |
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes |
14 |
# http://blogs.law.harvard.edu/tech/stories/storyReader$15 |
15 |
#LANGUAGE_CODE = 'en-us' |
16 |
|
17 |
TAGLINE = u'Everyone will like it' |
18 |
FOOTER = u'(c) 2007-2009 <a href="/about/">Alexander Solovyov</a>' |
19 |
|
20 |
DEFAULT_FROM_EMAIL = 'Your Blog <[email protected]>' |
21 |
# Uncomment to get reports of errors by email |
22 |
#ADMINS = (('Your Name', '[email protected]'), ) |
23 |
|
24 |
# You may place HTML templates in the ../themes/{{ THEME }}/ directory. |
25 |
# They will override the templates with the same name from ../templates/. |
26 |
# You can set THEMES_DIR if you want to keep your themes separate from |
27 |
# those included with Byteflow. |
28 |
THEME = 'default' |
29 |
|
30 |
# Sample static pages links |
31 |
STATIC_PAGES = ( |
32 |
('About', '/about/', u'About me'), |
33 |
('Blog', '/blog/', u'Main place'), |
34 |
('', '', u''), |
35 |
('Dev', 'http://byteflow.su/', u'Take a look at the code and development'), |
36 |
) |
37 |
|
38 |
# Set this to true to get the first comment by any user autoapproved. |
39 |
# This makes sense if captcha is enabled. |
40 |
ANONYMOUS_COMMENTS_APPROVED = True |
41 |
|
42 |
# Possible choices are: ''|'simple'|'recaptcha' |
43 |
# To utilize recaptcha you must get public/private keys |
44 |
# from http://recaptcha.net/ |
45 |
CAPTCHA='' |
46 |
RECAPTCHA = {'example.com': {'public': '', |
47 |
'private': ''}} |
48 |
|
49 |
GA_ACC = {'host': 'code'} # Google Analytics account |
50 |
LI_ACC = False # Set True if you want liveinternet.ru counter |
51 |
GRAVATAR_ENABLE = False # Enable gravatars? |
52 |
SHORT_POSTS_IN_FEED = False # Full or short posts in feed |
53 |
WYSIWYG_ENABLE = False # WYSIWYG for post text in admin |
54 |
RENDER_METHOD = 'markdown' # Choices: bbcode and simple. |
55 |
# Don't use html here, it is unsafe |
56 |
MAINTENANCE_MODE = False # Set True if you want to put site in maitenance |
57 |
# (offline) mode |
58 |
|
59 |
# Format: {"domain": {"feedname": "feedburnername"}}, where: |
60 |
# - `domain` is domain name of your blog |
61 |
# - `feedname` is name of your feed in byteflow (f.e. "blog" or "tag/django") |
62 |
# - `feedburnername` is name of your feed in FeedBurner (f.e. "AmazonByteflow") |
63 |
FEEDBURNER = {"example.com": {}} |
64 |
|
65 |
# SOCIAL_BOOKMARKS can be reconfigured to contain values from |
66 |
# apps/blog/templatetags/bookmarks.py |
67 |
# URL_PREFIX can be set to add url prefix to *all* urls |
68 |
# BLOG_URLCONF_ROOT can be set if you want to remove 'blog/' prefix |
69 |
|
70 |
# URL_ROOT_HANDLER meaningful values: |
71 |
# - 'blog.views.process_root_request': will redirect to BLOG_URLCONF_ROOT |
72 |
# - 'blog.views.post_list': will display list of posts |
73 |
# - 'life.views.life_index': will display list of your life flow, |
74 |
# requires enabled 'life' application |
75 |
# - None: set it if you want to have flatpage as root page |
76 |
URL_ROOT_HANDLER = 'blog.views.process_root_request' |
77 |
|
78 |
# Set to True if you want to activate orm_debug template tag. |
79 |
# You also need to set the INTERNAL_IPS setting if you want to use the |
80 |
# "explain" feature of orm_debug |
81 |
ORM_DEBUG = False |
82 |
|
83 |
# Livejournal crossposting |
84 |
LJ_USERNAME = '' |
85 |
LJ_PASSWORD = '' |
86 |
|
87 |
# sape.ru settings |
88 |
#SAPE_USER = '74947f25f25d6eb17e910005cbeaa8e6' # You sape.ru ID |
89 |
# Links cache file. Check permissions! |
90 |
#SAPE_DB_FILE = os.path.join(PROJECT_ROOT, 'local', 'sape.links') |
91 |
# Set to True if you want see error messages when something goes wrong |
92 |
#SAPE_VERBOSE = True |
93 |
|
94 |
ADDITIONAL_APPS = ( |
95 |
'recaptcha', |
96 |
'pingback', |
97 |
'watchlist', # comments subscription |
98 |
'robots', |
99 |
# 'haystack' # search, see settings.py for HAYSTACK_* options |
100 |
# 'nebula', # support application for friends and life |
101 |
# 'friends', # blogroll + planet-like aggregator |
102 |
# 'life', # your activity aggregator |
103 |
# 'debug', # debug sql query |
104 |
# 'livejournal', # livejournal crossposting |
105 |
# 'textblocks', |
106 |
# 'wpimport', |
107 |
# 'sape', # sape.ru |
108 |
) |
109 |
|
110 |
# DEBUG must be False in production mode |
111 |
# Please read http://byteflow.su/wiki/DEBUG |
112 |
DEBUG = True |
113 |
print "!!! Read about DEBUG in settings_local.py and then remove me !!!" |