Fixed. :) STATIC_PATH was pointing to /home/me/projects/python/myproject/ templates/static instead of /home/me/projects/python/myproject/static
ty :) On 11 jan, 22:28, Khaoz <[email protected]> wrote: > I'm trying to use SharedDataMiddleware following the tutorial: > > self.dispatch = SharedDataMiddleware(self.dispatch, {'/static': > STATIC_PATH}) > > where STATIC_PATH points to: > > /home/me/projects/python/myproject/static > > Because i have another directories inside static: > > js/ > css/ > images/ > > I created the following rules: > > Rule('/static/css/<file>', endpoint='css', build_only=True) > Rule(/static/js/<file>', endpoint='js', build_only=True) > Rule('/static/images/<file>', endpoint='images', build_only=True) > > But when i try to use url_for('css', file='style.css') for example my > application print a 404 error in my terminal. > > I tried to modify my SharedDataMiddleware to: > > self.dispatch = SharedDataMiddleware(self.dispatch, {'/static/css': > STATIC_PATH + '/css'}) > > But the error persist. How to handle this ? > > Ty --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pocoo-libs" 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/pocoo-libs?hl=en -~----------~----~----~----~------~----~------~--~---
