it's not a forgotten piece of code....it's there for a reason. 1) tell people about response.static_version 2) avoid any errors related to stale browser cache for the admin app files, that is getting more a javascript app than a python one
BTW, response.static_version is in web2py since Oct 2012, so a revised static alias in the setup (if needed) it's only going to keep people's setups updated with the current web2py setup scripts. On Thursday, October 31, 2013 3:41:11 PM UTC+1, Richard wrote: > > This should be something forget in web2py code I guess, or the activate > response.static_version > > But I think it has been forget, since response.static_version should be > from your app. > > Anyway to workaround this you have to configure appache, read the doc form > the link post by Kiran above. > > :) > > Richard > > > On Thu, Oct 31, 2013 at 9:08 AM, Kiran Subbaraman > <subbaram...@gmail.com<javascript:> > > wrote: > >> Am not sure what is causing the issue. But reading this bit of the >> documentation may give you a clue: >> http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management >> >> ________________________________________ >> Kiran Subbaramanhttp://subbaraman.wordpress.com/about/ >> >> On 10/31/2013 5:52 PM, Johann Spies wrote: >> >> Investing why admin on the server does not use CSS (at least for the >> initial view and the 'design' view) I found (using Firebug) that the >> references to the static files look like this: >> >> <script type="text/javascript" src="/admin/static/_2.7.3/js/jquery.js"> >> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> >> <html><head> >> <title>404 Not Found</title> >> </head><body> >> <h1>Not Found</h1> >> <p>The requested URL /admin/static/_2.7.3/js/jquery.js was not found on >> this server.</p> >> <hr> >> <address>Apache/2.2.22 (Debian) Server at crest2.sun.ac.za Port >> 443</address> >> </body></html> >> >> I can not find what is causing this. I suspect this happened with the >> upgrade to Web2py version 2.7.3. At the moment the version is: Version >> 2.7.4-stable+timestamp.2013.10.21.21.29.21 >> >> I have rsynced the installation on the server to my local computer and >> there it does not happen when I run web2py from that rsynced version. >> >> The server uses Apache2. >> >> How do I correct this? The files in admin/views does not contain that >> string. So something is inserting '_2.7.3' whenever a static url is formed. >> >> Regards >> Johann >> >> >> -- >> Because experiencing your loyal love is better than life itself, >> my lips will praise you. (Psalm 63:3) >> -- >> 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+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> -- >> 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+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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/groups/opt_out.