brian-zhao / google-app-engine-django

Automatically exported from code.google.com/p/google-app-engine-django
Apache License 2.0
0 stars 0 forks source link

console management command doesn't work #200

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The console command is accessing an old remote_api url and fails with the 
remote_api from the builtins.

What steps will reproduce the problem?
1. python2.5 manage.py console appid
2. access a model

What is the expected output? What do you see instead?
404 error

This is my fix:

--- a/appengine_django/management/commands/console.py
+++ b/appengine_django/management/commands/console.py
@@ -40,7 +40,7 @@ class Command(BaseCommand):
       host = '%s.appspot.com' % app_id

     remote_api_stub.ConfigureRemoteDatastore(app_id, 
-                                             '/remote_api',
+                                             '/_ah/remote_api',
                                              auth_func,
                                              host)

Original issue reported on code.google.com by sebastian.serrano on 2 Nov 2011 at 2:59