I found a solution! The app.yaml contains the following lines:

handlers:
# Warning! Static mapping - below - isn't compatible with
# the parametric router's language logic.
# You cannot use them together.

- url: /(.+?)/static/_\d.\d.\d\/(.+)
  static_files: applications/\1/static/\2
  upload: applications/(.+?)/static/(.+)
  secure: optional
  expiration: "365d"

- url: /(.+?)/static/(.+)
   static_files: applications/\1/static/\2
  upload: applications/(.+?)/static/(.+)
  secure: optional

If I comment the last block it starts to work:

handlers:
# Warning! Static mapping - below - isn't compatible with
# the parametric router's language logic.
# You cannot use them together.

- url: /(.+?)/static/_\d.\d.\d\/(.+)
  static_files: applications/\1/static/\2
  upload: applications/(.+?)/static/(.+)
  secure: optional
  expiration: "365d"

#- url: /(.+?)/static/(.+)
#  static_files: applications/\1/static/\2
#  upload: applications/(.+?)/static/(.+)
#  secure: optional

Seems like the 2nd url was overwritting the 1st one.
Any ideas if this will create any other issues?


Thanks
Miguel

On Thu, Oct 2, 2014 at 6:18 AM, Miguel Goncalves <goncalvesmig...@gmail.com>
wrote:

> Hi
>
> The app.yaml does indeed contain the following line that is supposed to
> get rid of the version number in the path to static files.
>
> - url: /(.+?)/static/_\d.\d.\d\/(.+)
>   static_files: applications/\1/static/\2
>
> However this seems to be ignored by the GAE SDK (running local). I
> replaced it by:
> - url: /(.+?)/static/_\d.\d.\d\/(.+)
>   static_files: applications/\1/FOOOO/\2
>
> cleared the browser cache, restarted the GAE Launcher and none of my path
> changed.
>
> Any idea of what I am doing wrong?
>
> thx
> Miguel
>
> On Tue, Sep 30, 2014 at 8:01 AM, Niphlod <niph...@gmail.com> wrote:
>
>> you need to fix static serving in GAE so it supports versioning of static
>> files.
>> The default config file for GAE already takes care of it.
>>
>>
>> On Tuesday, September 30, 2014 3:22:19 PM UTC+2, Miguel wrote:
>>>
>>> Hi
>>>
>>> I just downloaded web2py source code and I am running the local GAE SDK.
>>> When I go to the web2py admin interface, none of the styling is applied.
>>>
>>> Looking at the HTML generated source code, I find the following in the
>>> <Head> section:
>>>
>>>
>>> <script src="/admin/static/_2.9.11/js/jquery.js"
>>> type="text/javascript"></script>
>>> <link href="/admin/static/_2.9.11/css/calendar.css" rel="stylesheet"
>>> type="text/css">
>>> <script src="/admin/static/_2.9.11/js/calendar.js"
>>> type="text/javascript"></script>
>>> <script src="/admin/static/_2.9.11/js/web2py.js"
>>> type="text/javascript"></script>
>>> etc.
>>>
>>>
>>> Obviously the version number (_2.9.11) should not be there.
>>> How do I fix this?
>>>
>>> Thanks
>>> -Miguel
>>>
>>  --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to