The wiki caches the rendered pages in HTML for speed. So when the app moves
the cached pages contain the wrong links.
the auth.wiki(...) method has a force_render which you can set to True
auth.wiki(force_render=True) which will re-create the cached content when
pages are called.
or you can do:
render = auth.wiki.get_renderer
for row in db(db.wiki_page).select():
row.update_record(html=render(row.page))
db.commit()
Massimo
On Thursday, 20 August 2015 14:13:48 UTC-5, [email protected] wrote:
>
> I have the same problem as Andrew W. When deployed to pythonanywhere.com
> the pages still point to the local host.
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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/d/optout.