forked from DocSavage/bloog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
104 lines (94 loc) · 3.79 KB
/
config.py
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import os
import logging
APP_ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
# If we're debugging, turn the cache off, etc.
# Set to true if we want to have our webapp print stack traces, etc
DEBUG = os.environ['SERVER_SOFTWARE'].startswith('Dev')
logging.info("Starting application in DEBUG mode: %s", DEBUG)
# Don't change default_blog or default_page to prevent conflicts when merging # Bloog source code updates.
# Do change blog or page dictionaries at the bottom of this config module.
BLOG = {
"bloog_version": "0.8",
"html_type": "text/html",
"charset": "utf-8",
"title": "Millennium Hand",
"author": "Glenn Jones",
# This must be the email address of a registered administrator for the
# application due to mail api restrictions.
"email": "[email protected]",
"description": "",
"root_url": "http://blog.millenniumhand.co.uk",
"master_atom_url": "/feeds/atom.xml",
"comments_atom_url": "/feeds/comments.xml",
# By default, visitors can comment on article for this many days.
# This can be overridden by setting article.allow_comments
"days_can_comment": 60,
# You can override this default for each page through a handler's call to
# view.ViewPage(cache_time=...)
"cache_time": 0 if DEBUG else 3600,
# Use the default YUI-based theme.
# If another string is used besides 'default', calls to static files and
# use of template files in /views will go to directory by that name.
"theme": ["default"],
# Display gravatars alongside user comments?
"use_gravatars": True,
# Do you want to be emailed when new comments are posted?
"send_comment_notification": True,
# If you want to use legacy ID mapping for your former blog platform,
# define it here and insert the necessary mapping code in the
# legacy_id_mapping() function in ArticleHandler (blog.py).
# Currently only "Drupal" is supported.
"legacy_blog_software": None,
#"legacy_blog_software": "Drupal",
#"legacy_blog_software": "Serendipity",
# If you want imported legacy entries _not_ mapped in the file above to
# redirect to their new permanent URL rather than responding on their
# old URL, set this flag to True.
"legacy_entry_redirect": False,
}
PAGE = {
"title": BLOG["title"],
"articles_per_page": 5,
"navlinks": [
{ "title": "Articles", "description": "Bits of Info",
"url": "/articles"},
],
"featuredMyPages": {
"title": "Blogs",
"description": "",
"entries": [
{ "title": "Kamil",
"url": "http://blog.kamil.dworakowski.name/",
"description": "" },
{ "title": "Tartley",
"url": "http://www.tartley.com/",
"description": "" },
{ "title": "Ironpython URLs",
"url": "http://ironpython-urls.blogspot.com/",
"description": "" },
{ "title": "Fuzzyman",
"url": "http://www.voidspace.org.uk/python/weblog/index.shtml",
"description": "" },
{ "title": "Giles",
"url": "http://www.gilesthomas.com/",
"description": "" },
#{ "title": "",
# "url": "",
# "description": "" },
]
},
"featuredOthersPages": {
"title": "Links",
"description": "",
"entries": [
{ "title": "Resolver Sytems",
"url": "http://resolversystems.com/",
"description": "My employer" },
{ "title": "Bloog at GitHub",
"url": "http://github.com/DocSavage/bloog", },
{ "title": "Google App Engine",
"url": "http://code.google.com/appengine/",
"description": "The mothership" },
]
},
}