My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
How_To_Install_cpedialog  
This article will tell you how to install cpedialog on appengine.
cpedialog, install, Featured
Updated Dec 26, 2009 by cpe...@gmail.com

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

If you met the index not found error, please refer to: http://code.google.com/p/cpedialog/wiki/How_to_fix_the_index_not_found_error_when_deploy_to_production

Comment by macauboy...@gmail.com, Sep 2, 2008

how to setup admin privilege? thank you

Comment by project member cpe...@gmail.com, Sep 4, 2008

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

Comment by hareem.haque@gmail.com, 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 errors[err.application_error](err.error_detail)
NeedIndexError?: no matching index found.

please advise

Email: hareem.haque@gmail.com

Comment by zhaoxiy...@gmail.com, Dec 27, 2008

yes mine is like this too

Comment by applefui...@gmail.com, 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 giqc...@gmail.com, Jan 4, 2009

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

Comment by ahw...@gmail.com, Jan 14, 2009

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

Comment by mokada...@gmail.com, 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 liuyajun...@gmail.com, 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 errors[err.application_error](err.error_detail)
NeedIndexError?: no matching index found.

help me fix this erorr!

Comment by free2312...@gmail.com, 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.u...@gmail.com, Jun 4, 2009

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

Comment by aldo.u...@gmail.com, Jun 4, 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 errors[err.application_error](err.error_detail)
NeedIndexError?: no matching index found.

Comment by dropf...@gmail.com, Aug 7, 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?(path[1:-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?(path[1:-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 project member cpe...@gmail.com, 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 3, 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 3, 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 8, 2009

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

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

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

Comment by ChunZhi...@gmail.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 ruho...@gmail.com, Oct 10, 2009

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

Comment by forest...@gmail.com, 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)

Comment by fergalmo...@gmail.com, Nov 26, 2009

You might need to guard against an empty gQuery response. If you add a couple of lines to util.py to check

if blogs_query is None:
then you should be able to avoid the above error in getBlogPagination

Comment by omda.che...@gmail.com, Dec 15, 2009

终于运行起来了,还想请教个问题: 你那个域名:http://blog.cpedia.com/,如何直接引用http://cpedia.appspot.com的容而且保持地址栏里面的域名不变呢?

Comment by Matthew6688, Dec 23, 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/mxfarma8/2.338653540878036077/blog.py", line 86, in get
obj_page = util.getBlogPagination(page)
File "/base/data/home/apps/mxfarma8/2.338653540878036077/util.py", line 145, in getBlogPagination
obj_page = YUIPaginator(blogs_query,page,cpedialog.num_post_per_page)
File "/base/data/home/apps/mxfarma8/2.338653540878036077/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 1558, in count
result = raw_query.Count(limit=limit)
File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 1102, in Count
raise ToDatastoreError?(err)
NeedIndexError?: no matching index found.

Comment by project member cpe...@gmail.com, Dec 26, 2009
Comment by auffa...@gmail.com, Jan 13, 2010

I have the same problem as forest520.

Fergalmohan suggested "if blogs_query is None:" however this gives me "NameError?: global name 'blogs_query' is not defined."

The error message about render says "TypeError??: render() takes at least 3 arguments (2 given)." I find render defined as follows:

def render(self, handler,template_name, params={}):

However the call is render(self).

How to fix this?

Comment by EternalS...@hotmail.com, Mar 22, 2010

在opera里访问xxxx/admin出错 403 没法管理博客 请问下怎么回事

Comment by linci...@gmail.com, Apr 2, 2010

本地调试没有问题,上传打开myid.appspot.com/显示 A server error occurred. Please contact the administrator. 请问如何解决,谢谢

Comment by Rechard....@gmail.com, Apr 25, 2010

I have tried replacing the index.yaml,but the index error remained.

Comment by project member cpe...@gmail.com, May 21, 2010

You should wait a while for the appengine server to serv the index

Comment by hao0...@gmail.com, May 31, 2010

>本地调试没有问题,上传打开myid.appspot.com/显示<br /> > A server error occurred. Please contact the administrator. 请问如何解决,谢谢<br />

你必须从登陆画面,用gmail账号登陆才可以。<br /> http://blog.froole.net <br />

Comment by LonelyT...@gmail.com, Jun 25, 2010

同上面,Layout时,点“Save Current Layout”按钮没有任何反应。 大侠帮忙

Comment by dle.ev...@gmail.com, May 1, 2011

Can you use the dev_appserver.py to test cpedialog, I uploaded the blog to appengine and it worked fine, however the dev_appserver.py complains whenever I access the site.

Crypto.Util.python_compat import ImportError?: No module named python_compat

Comment by juancarl...@gmail.com, Jun 20, 2011

The appengine server needs 24 Hours to serv the index in my case, go to sleep, try the next day...

Comment by nguyenva...@gmail.com, Dec 28, 2011

I cant submit a post. it take a error : Generate permanent link for blog error, please retry it.

Comment by kil...@sofasurfer.ch, Jan 25, 2012

I have the same problem "Generate permanent link for blog error, please retry it." cant submit a post.

Has anyone the same problem or a solution for this?


Sign in to add a comment
Powered by Google Project Hosting