forked from DocSavage/bloog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
106 lines (96 loc) · 4.17 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
105
106
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": "Bloog",
"author": "Bill Katz",
# This must be the email address of a registered administrator for the
# application due to mail api restrictions.
"email": "[email protected]",
"description": "A RESTful Blog/Homepage for Google AppEngine.",
"root_url": "http://bloog.billkatz.com",
"master_atom_url": "/feeds/atom.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"},
{ "title": "Contact", "description": "Send me a note",
"url": "/contact"},
],
"featuredMyPages": {
"title": "Bloog Development",
"description": "Get involved",
"entries": [
{ "title": "Source Code",
"url": "http://github.com/DocSavage/bloog",
"description": "GitHub repository" },
{ "title": "Tarball",
"url": "http://github.com/DocSavage/bloog/tarball/master",
"description": "Most recent snapshot" },
{ "title": "Group",
"url": "http://groups.google.com/group/bloog/topics",
"description": "Developer discussion" },
{ "title": "Author's Bloog",
"url": "http://www.billkatz.com",
"description": "What's brewing" },
{ "title": "Architecture Diagram",
"url": "/static/images/architecture2.png",
"description": "RESTful Bloog" }
]
},
"featuredOthersPages": {
"title": "Google App Engine",
"description": "Developer Resources",
"entries": [
{ "title": "Google App Engine",
"url": "http://code.google.com/appengine/",
"description": "The mothership" },
{ "title": "App Engine Group",
"url": "http://groups.google.com/group/google-appengine",
"description": "Developer group" },
{ "title": "App Engine Open Source",
"url": "http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects",
"description": "Code!" },
{ "title": "App Engine Console",
"url": "http://appengine.google.com",
"description": "Your apps" }
]
},
}