The regex does not work when the filename is in a folder.

I am not familiar enough with regex to have it include / as well in the
filename.

-Thadeus




On Mon, Sep 21, 2009 at 1:03 AM, Thadeus Burgess
<[email protected]>wrote:

> I like the use of S = lambda filename: URL(r=request, c='static',
> f=filename)
>
> and then specify the static server in routes_out
>
> I can still use S for berevity, yet since routes.py is located in the
> web2py/ I don't have to change any lines of code when I update my app.
>
> Thanks for the suggestions.
>
> ... now what if you want to distribute the load across several static
> servers.... guess you would use amazons cloud server then hah.
>
> -Thadeus
>
>
>
>
>
> On Mon, Sep 21, 2009 at 12:52 AM, Thadeus Burgess <
> [email protected]> wrote:
>
>> Well I was thinking, that since while in development, I name the app by
>> its name.
>>
>> And when I have the app deployed, i have the folder named init (so web2py
>> picks it up as the default)(i probably wont use two apps on one domain)
>>
>> So if i just use the routes_out and only specify it for /init/static then
>> in my special case it will work for both development and deployment without
>> changing a line of code.
>>
>> I like that :)
>>
>> However, if your app is named the same during development and deployment,
>> then you have a conflict, and still have to at least comment the line out of
>> routes_out =/
>>
>> But since that is likely never going to be the case with me, i'm not too
>> worried about it
>>
>> -Thadeus
>>
>>
>>
>>
>>
>> On Mon, Sep 21, 2009 at 12:40 AM, Álvaro Justen [Turicas] <
>> [email protected]> wrote:
>>
>>> S = lambda filename: URL(r=request, c='static', f=filename)
>>>
>>
>>
>

--~--~---------~--~----~------------~-------~--~----~
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