Is it possible to debug this code running under Apache on production machine? This problem never occurs on dev system.
On Thursday, May 4, 2017 at 7:16:59 PM UTC+5:30, Suhas Patil wrote: > > > I am facing a peculiar problem. Every so often template rendering fails > because path to the template is not found. If I refresh the browser a few > times (i.e. reexecute the same code) , the page is displayed. The code > fails at the highlighted line in the template.py of web.py. When I checked > the reason I found path variable was getting set to None. Any idea what is > going on? > > def _load_template(self, name): > > kind, path = self._lookup(name) > > > > if kind == 'dir': > > return Render(path, cache=self._cache is not None, > base=self._base, **self._keywords) > > elif kind == 'file': > > return Template(open(path).read(), filename=path, > **self._keywords) > > else: > > raise AttributeError, "No template named " + name > -- You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/webpy. For more options, visit https://groups.google.com/d/optout.
