This seems to work nicely to allow me to not have a ton of directories with an index.html inside:
http://pastie.org/private/copwhao366ij3r2upurfdq template.whoops() is just an error page. On Sep 7, 9:20 pm, Anand Chitipothu <[email protected]> wrote: > 2011/9/8 Patrick Jameson <[email protected]>: > > > > > > > > > > > I have a file structure as follows. There are a lot more files around > > these but they're unimportant and work fine. > > > /mort11org/templates/most_pages <- main dir with templates wanted > > /programming/ <- a directory with more html files > > /programming.html <- an html file > > > I wrote this code in order to make having a large amount of html files > > easy to handle in webpy. > > >http://pastie.org/private/4arzd3ksfgoqdpkollupq > > > It works great until I try to access programming.html, then it spits > > out an "AttributeError: Render instance has no __call__ method" > > error. > > > When I try to delete the programming/ directory it works perfectly > > fine, leading me to believe webpy is confusing the directory with the > > template I'm trying to call. I can even call pages within the > > programming directory fine with this method. > > > Any ideas how to fix this? I've thought of creating a preface to all > > directories, making the programming directory dir_programming/ but > > that seems messy. > > Yes, that is an issue. I usually keep programming/index.html instead > of programming.html to avoid that issue. > > Anand -- You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en.
