My favorites | Sign in
Logo
                
Search
for
Updated Jul 30, 2009 by cpedia
Labels: cpedialog, install, Featured
How_To_Install_cpedialog  
This article will tell you how to install cpedialog on appengine.

Preface

Before you start to install cpedialog, you need to know what appengine is and what appengine can do. If you still have some uncertainty, please refer to: http://code.google.com/appengine/docs/whatisgoogleappengine.html

Make sure Google App Engine has been installed correctly.

And we also recommend you to read the article for "Uploading an App" to appengine: http://code.google.com/appengine/docs/appcfgpy.html

Details

1.Download cpedialog from googlecode site (http://code.google.com/p/cpedialog/downloads/list) and decompress it to a folder, for example, extract it to "D:\My projects\cpedialog", make sure file "app.yaml" is located in the folder of cpedialog.

2.Open the file app.yaml with some text editor (such as Microsoft Notpad). Change the applocation property in the first line to your own appengine app name. For example: application: pchen change to: application: your_app_id

3.Run the appcfg.py update command to upload cpedialog to your appengine app.

cd D:\My projects
appcfg.py update cpedialog

wait until the command execute finished.

Now you can access your app running on App Engine: http://your_app_id.appspot.com


Comment by macauboy429, Sep 02, 2008

how to setup admin privilege? thank you

Comment by cpedia, Sep 04, 2008

Just login with the google account which you used for creating the GAE app.

Comment by hareem.haque, Dec 18, 2008

I get the following error:

Traceback (most recent call last):

File "/base/python_lib/versions/1/google/appengine/ext/webapp/init.py", line 498, in call
handler.get(groups)
File "/base/data/home/apps/hlabsblog/1.330079895166875385/blog.py", line 85, in get
obj_page = util.getBlogPagination(page)
File "/base/data/home/apps/hlabsblog/1.330079895166875385/util.py", line 127, in getBlogPagination
obj_page = GqlQueryPaginator?(blogs_query,page,cpedialog.num_post_per_page).page()
File "/base/data/home/apps/hlabsblog/1.330079895166875385/cpedia/pagination/GqlQueryPaginator?.py", line 32, in init
self.count = int(gqlQuery.count()) ##todo:google GqlQuery? has 1000 records limit.
File "/base/python_lib/versions/1/google/appengine/ext/db/init.py", line 1353, in count
return self.get_query().Count(limit=limit)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 960, in Count
raise ToDatastoreError?(err)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 1637, in ToDatastoreError?
raise errorserr.application_error?(err.error_detail)
NeedIndexError?: no matching index found.

please advise

Email: hareem.haque@gmail.com

Comment by zhaoxiyoth, Dec 27, 2008

yes mine is like this too

Comment by applefuitapps, Dec 29, 2008

hello,

I installed this blog program successfully, but I can not log in to get admin privilege with the account which I installed it. I use Apps standard account: changhe@changblog.com. The home page is fine and it works well on local. My site is applefruitade.appspot.com

你好,

我按照说明安装了这个程序,可以访问主页,但是我用相应的app engine帐户登录blog,却没办法获得管理权限。在本地运型模你器一切正常。但是在网上怎么弄也不成。我的帐号是apps的,绑在我的域名下边,changhe@changblog.com。到底是什么原因呢?我后来又用这个邮件注册了现在的这个gmail邮件,还是不行。我的网站是applefruitade.appspot.com。

Comment by giqcass, Jan 04, 2009

Here is what happens to me every time I try to upload an app.

Comment by ahwahk, Jan 14, 2009

我安裝之後,每次添加blog 都顯示是一月一日的。

Comment by mokadajpn, May 10, 2009

To resolve "no matching index found" error, Try removing index.yaml, and deploy (appcfg.py update) again. And rebuild indexes by "appcfg.py update_indexes cpedialog"

Comment by liuyajunjay, May 28, 2009

Traceback (most recent call last):

File "/base/python_lib/versions/1/google/appengine/ext/webapp/init.py", line 501, in call
handler.get(groups)
File "/base/data/home/apps/wodernlandblog/3.333797992823655916/blog.py", line 85, in get
obj_page = util.getBlogPagination(page)
File "/base/data/home/apps/wodernlandblog/3.333797992823655916/util.py", line 127, in getBlogPagination
obj_page = GqlQueryPaginator?(blogs_query,page,cpedialog.num_post_per_page).page()
File "/base/data/home/apps/wodernlandblog/3.333797992823655916/cpedia/pagination/GqlQueryPaginator?.py", line 32, in init
self.count = int(gqlQuery.count()) ##todo:google GqlQuery? has 1000 records limit.
File "/base/python_lib/versions/1/google/appengine/ext/db/init.py", line 1401, in count
return self.get_query().Count(limit=limit)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 986, in Count
raise ToDatastoreError?(err)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 2020, in ToDatastoreError?
raise errorserr.application_error?(err.error_detail)
NeedIndexError?: no matching index found.

help me fix this erorr!

Comment by free2312030, May 30, 2009

I hava these errors:

Error 400: --- begin server output --- Creating a composite index failed: This index: entity_type: "Archive" ancestor: false Property {

name: "date" direction: 2
}

is not necessary, since single-property indices are built in. Please remove it from your index file and upgrade to the latest version of the SDK, if you haven't already. --- end server output --- Your app was updated, but there was an error updating your indexes. Please retry later with appcfg.p y update_indexes.

I don't know where error? Help me ~

Comment by aldo.urem, Jun 04, 2009

same errors only errors!! can someone help about this?

Comment by aldo.urem, Jun 04, 2009

Traceback (most recent call last):

File "/base/python_lib/versions/1/google/appengine/ext/webapp/init.py", line 501, in call
handler.get(groups)
File "/base/data/home/apps/pythotest/1.333965847950402425/blog.py", line 85, in get
obj_page = util.getBlogPagination(page)
File "/base/data/home/apps/pythotest/1.333965847950402425/util.py", line 127, in getBlogPagination
obj_page = GqlQueryPaginator?(blogs_query,page,cpedialog.num_post_per_page).page()
File "/base/data/home/apps/pythotest/1.333965847950402425/cpedia/pagination/GqlQueryPaginator?.py", line 32, in init
self.count = int(gqlQuery.count()) ##todo:google GqlQuery? has 1000 records limit.
File "/base/python_lib/versions/1/google/appengine/ext/db/init.py", line 1401, in count
return self.get_query().Count(limit=limit)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 986, in Count
raise ToDatastoreError?(err)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 2020, in ToDatastoreError?
raise errorserr.application_error?(err.error_detail)
NeedIndexError?: no matching index found.

Comment by dropfood, Aug 07, 2009

后台模板修改有错误 /admin/layout

Traceback (most recent call last):

File "/base/python_lib/versions/1/google/appengine/ext/webapp/init.py", line 507, in call
handler.get(groups)
File "/base/data/home/apps/dropfood/1.335456781470166076/authorized.py", line 61, in check_login
return handler_method(self, args, kwargs)
File "/base/data/home/apps/dropfood/1.335456781470166076/admin.py", line 252, in get
self.generate('admin/admin_layout.html',template_values)
File "/base/data/home/apps/dropfood/1.335456781470166076/admin.py", line 62, in generate
view.ViewPage?(cache_time=0).render(self, template_name,values)
File "/base/data/home/apps/dropfood/1.335456781470166076/view.py", line 115, in render
output = self.render_or_get_cache(handler, template_file, params)
File "/base/data/home/apps/dropfood/1.335456781470166076/view.py", line 108, in render_or_get_cache
return self.full_render(handler, template_file, template_params)
File "/base/data/home/apps/dropfood/1.335456781470166076/view.py", line 88, in full_render
return template.render(template_file, template_params, debug=cpedialog.debug)
File "/base/python_lib/versions/1/google/appengine/ext/webapp/template.py", line 80, in render
t = load(template_path, debug)
File "/base/python_lib/versions/1/google/appengine/ext/webapp/template.py", line 108, in load
template = django.template.loader.get_template(file_name)
File "/base/python_lib/versions/third_party/django-0.96/django/template/loader.py", line 80, in get_template
template = get_template_from_string(source, origin, template_name)
File "/base/python_lib/versions/third_party/django-0.96/django/template/loader.py", line 88, in get_template_from_string
return Template(source, origin, name)
File "/base/python_lib/versions/third_party/django-0.96/django/template/init.py", line 158, in init
self.nodelist = compile_string(template_string, origin)
File "/base/python_lib/versions/third_party/django-0.96/django/template/init.py", line 174, in compile_string
return parser.parse()
File "/base/python_lib/versions/third_party/django-0.96/django/template/init.py", line 273, in parse
compiled_result = compile_func(self, token)
File "/base/python_lib/versions/third_party/django-0.96/django/template/loader_tags.py", line 172, in do_include
return ConstantIncludeNode?(path1:-1?)
File "/base/python_lib/versions/third_party/django-0.96/django/template/loader_tags.py", line 87, in init
t = get_template(template_path)
File "/base/python_lib/versions/third_party/django-0.96/django/template/loader.py", line 80, in get_template
template = get_template_from_string(source, origin, template_name)
File "/base/python_lib/versions/third_party/django-0.96/django/template/loader.py", line 88, in get_template_from_string
return Template(source, origin, name)
File "/base/python_lib/versions/third_party/django-0.96/django/template/init.py", line 158, in init
self.nodelist = compile_string(template_string, origin)
File "/base/python_lib/versions/third_party/django-0.96/django/template/init.py", line 174, in compile_string
return parser.parse()
File "/base/python_lib/versions/third_party/django-0.96/django/template/init.py", line 273, in parse
compiled_result = compile_func(self, token)
File "/base/python_lib/versions/third_party/django-0.96/django/template/loader_tags.py", line 172, in do_include
return ConstantIncludeNode?(path1:-1?)
File "/base/python_lib/versions/third_party/django-0.96/django/template/loader_tags.py", line 87, in init
t = get_template(template_path)
File "/base/python_lib/versions/third_party/django-0.96/django/template/loader.py", line 79, in get_template
source, origin = find_template_source(template_name)
File "/base/python_lib/versions/third_party/django-0.96/django/template/loader.py", line 72, in find_template_source
raise TemplateDoesNotExist?, name
TemplateDoesNotExist?: include/menu_navigator.html

Comment by cpedia, Aug 10, 2009

后台模板的错误已经修复,请从svn上checkout最新code。

Comment by ovnicr...@gmail.com, Aug 20, 2009

I removed index.yaml from app and update give no errors but when try to access it in the cloud says this:

Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 507, in __call__
    handler.get(*groups)
  File "/base/data/home/apps/ovnicraft/2.335755820222154311/blog.py", line 86, in get
    obj_page = util.getBlogPagination(page)
  File "/base/data/home/apps/ovnicraft/2.335755820222154311/util.py", line 130, in getBlogPagination
    obj_page  =  YUIPaginator(blogs_query,page,cpedialog.num_post_per_page)
  File "/base/data/home/apps/ovnicraft/2.335755820222154311/cpedia/pagination/GqlQueryPaginator.py", line 33, in __init__
    self.count = int(gqlQuery.count())
  File "/base/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1430, in count
    return self._get_query().Count(limit=limit)
  File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 1003, in Count
    raise _ToDatastoreError(err)
  File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 2100, in _ToDatastoreError
    raise errors[err.application_error](err.error_detail)
NeedIndexError: no matching index found.
Comment by bbddb4, Sep 03, 2009

Guys, just follow the server response, "since single-property indices are built in. Please remove it from your index file"

remove it and you should be fine...

Comment by bbddb4, Sep 03, 2009

Yes, This is an issue with gae but it works fine as predicted..."since single-property indices are built in. Please remove it from your index file"

I think this is taken care of in the new version released (need to check)

- Lassina Ouattara

Comment by boy02.game, Sep 08, 2009

Layout时,点“Save Current Layout”按钮没有任何反应。

还有我用google帐号登陆后,系统会用邮箱名做为我的名称,我在帐户信息里修改后,发文章显示的是修改前的名称。

在IE下,帐户信息里的生日只有年、日,缺了月,而且无法更新帐户信息。FF下正常。

Comment by d...@live.com, Sep 28, 2009

上传后遇到这样的错误: Traceback (most recent call last):

File "/base/python_lib/versions/1/google/appengine/ext/webapp/init.py", line 507, in call
handler.get(groups)
File "/base/data/home/apps/syringa-oblata/1.336670071144637259/blog.py", line 85, in get
obj_page = util.getBlogPagination(page)
File "/base/data/home/apps/syringa-oblata/1.336670071144637259/util.py", line 127, in getBlogPagination
obj_page = GqlQueryPaginator?(blogs_query,page,cpedialog.num_post_per_page).page()
File "/base/data/home/apps/syringa-oblata/1.336670071144637259/cpedia/pagination/GqlQueryPaginator?.py", line 32, in init
self.count = int(gqlQuery.count()) ##todo:google GqlQuery? has 1000 records limit.
File "/base/python_lib/versions/1/google/appengine/ext/db/init.py", line 1485, in count
return self.get_query().Count(limit=limit)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 1040, in Count
raise ToDatastoreError?(err)
NeedIndexError?: no matching index found. 怎么解决阿??

Comment by ruhou.h, Oct 10, 2009

使用第三方上传工具sdupload为什么会上传失败? 机器系统太烂了没有安装python和SDK。。。

Comment by forest520, Oct 17, 2009

点“System Configuration”(/admin)的时候出现错误: Traceback (most recent call last):

File "/base/python_lib/versions/1/google/appengine/ext/webapp/init.py", line 507, in call
handler.get(groups)
File "/base/data/home/apps/cpedialog520/2.337098269425496884/blog.py", line 75, in get
view.ViewPage?(cache_time=36000).render(self)
TypeError?: render() takes at least 3 arguments (2 given)


Sign in to add a comment
Hosted by Google Code