You can put your files in static and they will all be exposed.
You can also create an action like
def static_content():
import os
files=os.listdir(os.path.join(request.folder,'static'))
return HTML(BODY(*[TR(TD(A(f),_href=URL
(r=request,c='static',f=f)))) for f in files]))
to list the content of the static folder.
On Apr 8, 3:16 am, Timmie <[email protected]> wrote:
> Sorry for insisting on this.
> But I didn't find an answer on the docs.
>
> I have a set of static html files generated through rst2html and which
> will never need a model.
> * How can I serve these with web2py without the need to put them in an
> apache htdocs directory?
> * Do I have to create a function in the model.py for each of the
> statics files in order not to get a "invalid request"?
>
> Thanks,
> Timmie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---