Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 107 lines (96 sloc) 4.272 kb
9b34d36 Bill Katz Added some path and debug flag statements gleaned from looking at Rietve...
DocSavage authored
1 import os
2 import logging
3
6f522e7 Bill Katz Do automatic template searching over parent directories. Major reshuffl...
DocSavage authored
4 APP_ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
5
8ca64c1 Bill Katz Added comment system. Did some refactoring of javascript.
DocSavage authored
6 # If we're debugging, turn the cache off, etc.
8f9fbd9 Bill Katz Moved theme-specific files into directories named 'default' in /static a...
DocSavage authored
7 # Set to true if we want to have our webapp print stack traces, etc
9b34d36 Bill Katz Added some path and debug flag statements gleaned from looking at Rietve...
DocSavage authored
8 DEBUG = os.environ['SERVER_SOFTWARE'].startswith('Dev')
9 logging.info("Starting application in DEBUG mode: %s", DEBUG)
8ca64c1 Bill Katz Added comment system. Did some refactoring of javascript.
DocSavage authored
10
a040005 Bill Katz Better formatting (< 80 column) for some python files. Updated default p...
DocSavage authored
11 # Don't change default_blog or default_page to prevent conflicts when merging # Bloog source code updates.
91fbf7d Bill Katz Initial commit of public Bloog branch. Provides base RESTful app that c...
DocSavage authored
12 # Do change blog or page dictionaries at the bottom of this config module.
13
5d345aa Bill Katz Updating config. Minor tag reference fix.
DocSavage authored
14 BLOG = {
f5f78f4 Bill Katz Reorganized files into a better MVC directory structure that also suppor...
DocSavage authored
15 "bloog_version": "0.8",
91fbf7d Bill Katz Initial commit of public Bloog branch. Provides base RESTful app that c...
DocSavage authored
16 "html_type": "text/html",
4194cba Bill Katz Improved handling of text encoding. Now primarily utf-8 inside app. Wi...
DocSavage authored
17 "charset": "utf-8",
91fbf7d Bill Katz Initial commit of public Bloog branch. Provides base RESTful app that c...
DocSavage authored
18 "title": "Bloog",
19 "author": "Bill Katz",
a040005 Bill Katz Better formatting (< 80 column) for some python files. Updated default p...
DocSavage authored
20 # This must be the email address of a registered administrator for the
21 # application due to mail api restrictions.
22 "email": "you@foo.com",
91fbf7d Bill Katz Initial commit of public Bloog branch. Provides base RESTful app that c...
DocSavage authored
23 "description": "A RESTful Blog/Homepage for Google AppEngine.",
24 "root_url": "http://bloog.billkatz.com",
25 "master_atom_url": "/feeds/atom.xml",
2e92bb7 Bill Katz Moved to name-based shard fetching. Seems to work slightly faster.
DocSavage authored
26 # By default, visitors can comment on article for this many days.
27 # This can be overridden by setting article.allow_comments
28 "days_can_comment": 60,
a040005 Bill Katz Better formatting (< 80 column) for some python files. Updated default p...
DocSavage authored
29 # You can override this default for each page through a handler's call to
30 # view.ViewPage(cache_time=...)
8f9fbd9 Bill Katz Moved theme-specific files into directories named 'default' in /static a...
DocSavage authored
31 "cache_time": 0 if DEBUG else 3600,
32
33 # Use the default YUI-based theme.
34 # If another string is used besides 'default', calls to static files and
35 # use of template files in /views will go to directory by that name.
0388917 Nick Johnson Added support for theme inheritance.
authored
36 "theme": ["default"],
1d1de7f Nick Johnson Added comment email notification based on Matteo Crippa's code.
authored
37
af5a3a3 Nick Johnson Added support for displaying gravatars with comments.
authored
38 # Display gravatars alongside user comments?
39 "use_gravatars": True,
40
1d1de7f Nick Johnson Added comment email notification based on Matteo Crippa's code.
authored
41 # Do you want to be emailed when new comments are posted?
42 "send_comment_notification": True,
8ca64c1 Bill Katz Added comment system. Did some refactoring of javascript.
DocSavage authored
43
43ab3b2 Bill Katz Simplified mapping from legacy URLs. Minor doc tweaks.
DocSavage authored
44 # If you want to use legacy ID mapping for your former blog platform,
45 # define it here and insert the necessary mapping code in the
46 # legacy_id_mapping() function in ArticleHandler (blog.py).
47 # Currently only "Drupal" is supported.
5732cd4 Nick Johnson Added support for automatically generating rewrites for static files.
authored
48 "legacy_blog_software": None,
49 #"legacy_blog_software": "Drupal",
50 #"legacy_blog_software": "Serendipity",
988d344 Nick Johnson Added support for 'legacy_entry_redirect' to return redirects for old en...
authored
51
52 # If you want imported legacy entries _not_ mapped in the file above to
53 # redirect to their new permanent URL rather than responding on their
54 # old URL, set this flag to True.
55 "legacy_entry_redirect": False,
91fbf7d Bill Katz Initial commit of public Bloog branch. Provides base RESTful app that c...
DocSavage authored
56 }
57
5d345aa Bill Katz Updating config. Minor tag reference fix.
DocSavage authored
58 PAGE = {
59 "title": BLOG["title"],
9583f58 Bill Katz Added paging and access to articles (unsyndicated pages). Allow relaxin...
DocSavage authored
60 "articles_per_page": 5,
91fbf7d Bill Katz Initial commit of public Bloog branch. Provides base RESTful app that c...
DocSavage authored
61 "navlinks": [
9583f58 Bill Katz Added paging and access to articles (unsyndicated pages). Allow relaxin...
DocSavage authored
62 { "title": "Articles", "description": "Bits of Info",
63 "url": "/articles"},
a040005 Bill Katz Better formatting (< 80 column) for some python files. Updated default p...
DocSavage authored
64 { "title": "Contact", "description": "Send me a note",
65 "url": "/contact"},
91fbf7d Bill Katz Initial commit of public Bloog branch. Provides base RESTful app that c...
DocSavage authored
66 ],
67 "featuredMyPages": {
6b326e0 Bill Katz YUI for delete and new blog entry/article. Edit/PUT still in progress. ...
DocSavage authored
68 "title": "Bloog Development",
69 "description": "Get involved",
91fbf7d Bill Katz Initial commit of public Bloog branch. Provides base RESTful app that c...
DocSavage authored
70 "entries": [
a040005 Bill Katz Better formatting (< 80 column) for some python files. Updated default p...
DocSavage authored
71 { "title": "Source Code",
72 "url": "http://github.com/DocSavage/bloog",
73 "description": "GitHub repository" },
74 { "title": "Tarball",
75 "url": "http://github.com/DocSavage/bloog/tarball/master",
76 "description": "Most recent snapshot" },
6b326e0 Bill Katz YUI for delete and new blog entry/article. Edit/PUT still in progress. ...
DocSavage authored
77 { "title": "Group",
78 "url": "http://groups.google.com/group/bloog/topics",
79 "description": "Developer discussion" },
5d345aa Bill Katz Updating config. Minor tag reference fix.
DocSavage authored
80 { "title": "Author's Bloog",
81 "url": "http://www.billkatz.com",
82 "description": "What's brewing" },
a040005 Bill Katz Better formatting (< 80 column) for some python files. Updated default p...
DocSavage authored
83 { "title": "Architecture Diagram",
84 "url": "/static/images/architecture2.png",
5d345aa Bill Katz Updating config. Minor tag reference fix.
DocSavage authored
85 "description": "RESTful Bloog" }
91fbf7d Bill Katz Initial commit of public Bloog branch. Provides base RESTful app that c...
DocSavage authored
86 ]
87 },
88 "featuredOthersPages": {
89 "title": "Google App Engine",
90 "description": "Developer Resources",
91 "entries": [
a040005 Bill Katz Better formatting (< 80 column) for some python files. Updated default p...
DocSavage authored
92 { "title": "Google App Engine",
93 "url": "http://code.google.com/appengine/",
94 "description": "The mothership" },
5d345aa Bill Katz Updating config. Minor tag reference fix.
DocSavage authored
95 { "title": "App Engine Group",
a040005 Bill Katz Better formatting (< 80 column) for some python files. Updated default p...
DocSavage authored
96 "url": "http://groups.google.com/group/google-appengine",
5d345aa Bill Katz Updating config. Minor tag reference fix.
DocSavage authored
97 "description": "Developer group" },
98 { "title": "App Engine Open Source",
99 "url": "http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects",
100 "description": "Code!" },
101 { "title": "App Engine Console",
102 "url": "http://appengine.google.com",
103 "description": "Your apps" }
91fbf7d Bill Katz Initial commit of public Bloog branch. Provides base RESTful app that c...
DocSavage authored
104 ]
105 },
106 }
Something went wrong with that request. Please try again.