yes but you will need to hardcode the URLs instead of using URL(...).

On Dec 26, 5:25 am, annet <[email protected]> wrote:
> My applications have a number of files in common which I would like to
> store under a subdomain:
> e.g. files.example.com
>
> At the moment I store these files in the static folders of the
> applications and use the following URLs to retrieve them:
>
> in web2py_ajax:
>
> response.files.insert(0,URL(r=request,c='static',f='jquery.js'))
>
> in a custom controller:
>
> response.image=URL(r=request,c='static',f='cms/media/default_1.jpg')
>
> Is it possible to store the .js .css and .jpg files under
> files.example.com, if so, where on the server should I store them and
> what would the URLs in the applications read like?
>
> Kind regards,
>
> Annet

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" 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.


Reply via email to