without the code you use to load them, it's quite impossible to figure out 
why it doesn't work.

On Monday, May 20, 2013 8:53:06 PM UTC+2, Lamps902 wrote:
>
> 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 one of the dynamically loaded pages from home or from most 
> other pages, it shows up fine. If, on the other hand, the current page is 
> one of the 'user' pages (i.e. default/user/register, default/user/login),  
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to