Hi, Im using lighttpd. Default deploy example from manual doesnt allow css files to load becasue of the version control of static files i understand, correct me if im wrong.
Cheers, El lunes, 18 de febrero de 2019, 19:20:00 (UTC-5), Dave S escribió: > > > > On Monday, February 18, 2019 at 2:58:33 PM UTC-8, xgp.l...@gmail.com > wrote: >> >> Hi, >> >> Sorry for my ignorance. How do you do that? >> Ive been trying without sucess using rewrite module. >> >> >> >> Cheers, >> >> > > Which webserver are you using? Is it the Rocket webserver that ships with > Web2Py, or Apache, or NginX, or IIS? > > Are you trying to use routes.py? You may not need to. From the book > reference that Anthony pointed to, it apears that you can deal with > everything in your models (e.g., db.py). The book also has examples for > Apache and NginX. I don't see anything in routes.py itself as an example > for rewriting, so the support for the model-based handling must be in the > response code itself. > > /dps > > > > >> El miércoles, 29 de agosto de 2018, 10:37:53 (UTC-5), Anthony escribió: >>> >>> The admin app uses the built-in static versioning functionality, as >>> described here: >>> http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management. >>> >>> You may need to configure your web server properly to handle those URLs, as >>> described in the above link. >>> >>> Anthony >>> >>> On Wednesday, August 29, 2018 at 10:08:32 AM UTC-4, Jörg Schneider wrote: >>>> >>>> >>>> After downloading 2.17.1 from Github I get wrong static URLs in the >>>> admin application: >>>> >>>> response.files.insert(0,URL('static','js/jquery.js')) in web2py_ajax.js >>>> resolves the URL to <script src="/admin/static/_2.17.1/js/jquery.js" which >>>> results in 404-errors for all static files for the admin application. >>>> There is no routes.py in the root folder and other installed >>>> applications work properly >>>> >>> -- 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.