try adding your application directory to sys.path

On Dec 15, 5:35 am, Dan <danbr...@gmail.com> wrote:
> I need to do some bulk operations (eg delete) on data in the GAE
> datastore for a web2py application, and was trying to follow the
> example in the GAE docs 
> here:http://code.google.com/appengine/articles/remote_api.html
>
> I can get the console up and running using the suggested
> appengine_console.py code, but am struggling to think of the right
> command to load the web2py application's data model into the console
> session so that I can run queries and work with the data. For example,
> this didn't work:
>
>
>
> >>> import applications.init.models.db
> or
> >>> import models.db
>
> both result in this message:
> ImportError: No module named models.db
>
> What is the proper command? Do I need to create any __init__.py files
> to make it work? Do I need to import some web2py modules first (or
> instead)?
>
> thanks
> Dan

--

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


Reply via email to