[google-appengine] remote_api access

2011-08-28 Thread wonglik
Hi All

I am trying to migrate my master/slave datastore into High
Replication. I am following instructions from this guide

http://code.google.com/appengine/docs/adminconsole/datastoreadmin.html#Copying_Entities_to_Another_Application

but I am stuck at point 5.

whenever I try to access

http://new-app-with-hrd.appspot.com/_ah/remote_api

I get

You must be logged in as an administrator to access this.

of course in dasboard/permissions I am set as owner of application.
Did I miss some steps here?

thanks
w

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] What is the best way to implement user ranking considering app engine limitations?

2009-07-18 Thread wonglik

So far I see two ways

one that would automatically update user rank whenever his points
change. or periodically rebuild whole ranking in the background. Both
have advantages and disadvantages but is there general good pattern
for this problem?


kind regards
w
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: app-engine-patch migration problem

2009-03-09 Thread wonglik

Thx that was it :)

regards
Mateusz

On Mar 8, 11:07 pm, Waldemar Kornewald wkornew...@gmail.com wrote:
 Hi,

 On 8 Mrz., 19:39,wonglikwag...@gmail.com wrote:

  I am trying to migrate appengine-django project to use app-engine-
  path. Among other problems I get something really strange (for
  me :) ). While trying to run my app I have trouble importing my
  models :

  KindError at /

  No implementation for kind 'Club'

 In your settings.py add this:
 DJANGO_STYLE_MODEL_KIND = False

 Bye,
 Waldemar Kornewald
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] app-engine-patch migration problem

2009-03-08 Thread wonglik

Hi

I am trying to migrate appengine-django project to use app-engine-
path. Among other problems I get something really strange (for
me :) ). While trying to run my app I have trouble importing my
models :

KindError at /

No implementation for kind 'Club'

Request Method: GET
Request URL:http://localhost:8000/
Exception Type: KindError
Exception Value:

No implementation for kind 'Club'

Exception Location: /usr/local/google_appengine/google/appengine/ext/
db/__init__.py in class_for_kind, line 217

do I missed something? Code is working in a pre-migration version ,
and application is added to instaled apps .


regards
W
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Django caching problem.

2009-03-07 Thread wonglik

Hi

I am trying to optimize my app by adding template caching
(http://docs.djangoproject.com/en/dev/topics/cache/?
from=olddocs#template-fragment-caching)

{% load cache %}

{% cache 3550 news version %}
{% include 'include/articles.html' %}
{% endcache %}




The problem I am facing is that cached part suddenly disappear.  I
mean for the first couple of time I refresh the page , it is there ,
but after some time (time vary from 10 sec to 5 min) the cached
fragment is just not there.

Happening both on local and production environment with just slight
difference of frequency (on local environment it is more rare).

first I have tried with standard configuration then I put in
settings :

CACHE_BACKEND = 'locmem:///?timeout=3600'

any clues? is it a bug or is it some appengine limitation ? or I am
just doing something wrong?

django v 1.0.2
appengine sdk 1.1.9
no django helper


regards
Mateusz
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] File Upload with Django1.0.2 problem - 'NoneType' object has no attribute 'validate'

2009-01-31 Thread wonglik

Hi

I have problem validating uploaded file using Django 1.0.2.

I have :

class Create_profile(djangoforms.ModelForm):
clubs = db.GqlQuery(Select * from Club)
C = [(x.key(), x.name) for x in clubs]
club = forms.ChoiceField(choices=C)
class Meta:
model=Profile

because blobs needs to be less then 1Mb and Profile contains avatar :
   pic = db.BlobProperty()

i tried to make custom validation checking if blob is not too big,
just for test I create naive implementation:

def clean_pic(self):
   raise forms.ValidationError(u'That image is too big')

if I do not upload a file it works fine - I get an validationError
that image is too big but If I uppload any file I get :

AttributeError at /xyz/

'NoneType' object has no attribute 'validate'

Exception Value:'NoneType' object has no attribute 'validate'

Exception Location: /home/wonglik/Applications/appengine/ga1.1.7/
google_appengine/google/appengine/ext/db/djangoforms.py in
property_clean, line 612

I become suspicious this can be because of Django1.0 changes. I did
not debug goole's code but naming convention make me thing they use
clean_data instead of cleanded_data .As far as I am concerned
clean_data switch its name to cleaned_data.

Is this a bug or does any body have an Idea what I am doing wrong?

regards
Mateusz
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---