I have a few pages (about, FAQ, terms of service) that are loaded from text
files in the static folder. The setup is basically like this:
content_files = Storage()
file_handler =
open(os.path.join(request.folder,"static","content","about.txt"),'r')
content_files['about'] = file_handler.read()
content_files_as_HTML['about'] = DIV(XML(content_files['about'] %
{'page_title':response.title or request.application,
'email_contact':settings.email_contact,
}), _id='about_static_content_div', _style='line-height:12px')
def about():
return dict()
If I click on the 'about' page from home or from most other pages, it show
up fine. If, on the other hand, the current page is one of the 'user' pages
(i.e. default/user/register, default/user/login), and I click on one of the
dynamically loaded pages, I get a blank page with a "404 NOT FOUND" error.
Any idea as to what's going on/how to fix it? Thanks.
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.