Ok, so I worked it out. My .htaccess was corrupted ;).
penjuin wrote:
> Basically, unless I have the .* in my / route, nothing except static
> (in /static/) works. It is not the server because I have another
> web.py site running fine. Can someone please tell me what I am doing
> wrong?
>
> #!/usr/bin/python
> import web, os, json
>
> urls = (
> "/", "Blog",
> "/ajax/(.*)", "AjaxHelper",
> )
> app = web.application(urls, globals())
> render = web.template.render('templates/')
> json_writer = json.JsonWriter() # for the ajax
>
> class Blog:
> def GET(self):
> posts = db.select('posts',order="creation_date desc",limit=5)
> return render.index("me", posts)
>
> class AjaxHelper:
> def GET(self, params):
> if params == "toolbar/open":
> return render.toolbar("open_nologin")
> else:
> return "cake"
> if __name__ == "__main__":
> app.run()
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---