开发者

Listing registration profiles in the admin interface of django-registration with django-nonrel

I've successfully installed django-nonrel, and django-registration on Google app engine, thanks for this very useful article. However I have difficulties on listing the registration profiles ( visiting /admin/registration/registrationprofile ) in the admin interface, I got the following error, just in the deployed version.

 File "/base/python_runtime/python_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2324, in __query_result_hook
   str(exc) + '开发者_StackOverflow中文版\nThe suggested index for this query is:\n' + yaml)

NeedIndexError: no matching index found.
The suggested index for this query is:
- kind: registration_registrationprofile
 properties:
 - name: __key__
   direction: desc

visiting /admin/registration/registrationprofile/add is just fine.

I had the same issue with one of my apps, but after a while it started working, don't know why.

What can be the problem?

EDIT

Strange, but now it's working. I guess it was because of my browser cache, or google servers needed more time to activate that index, don't know, maybe I'll try to find out later.


Error says everythig. You must define primary key in registration_registrationprofile as index in index.yaml file:

indexes:
- kind: registration_registrationprofile
  properties:
  - name: __key__
  - direction: desc
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜