This worked.  Thank you.

On Oct 18, 5:55 pm, "Martin.Mulone" <[email protected]> wrote:
> http://groups.google.com/group/web2py/browse_thread/thread/4abaf58c38...
>
> from mdipierro
> yes, make a script compile.py
>     from gluon.admin import app_compile
>     app_compile(request.application, request)
> and run it with
>     python web2py.py -S yourappname -R compile.py
> I have not tried it but should work. Everything that can be done via
> admin interface has an API in the gluon.admin module.
> Let us know if it works.
> Massimo
>
> On 18 oct, 19:52, "mr.freeze" <[email protected]> wrote:
>
> > from gluon.admin import app_compile
> > errs = app_compile('myapp',request)
> > if errs:
> >     response.flash = 'There were errors'
> > else:
> >     response.flash = 'Application compiled'
>
> > On Oct 18, 3:58 pm, VP <[email protected]> wrote:
>
> > > Is there a way to compile apps manually (instead of through the admin
> > > interface)?
>
> > > Thanks.
>
>

Reply via email to