Thank You! That did it... I was missing current in *models/db.py.* Now the only problem to solve is that I can not get* URL()* in Module *images.py* to point to *http://127.0.0.1:8000/images/*
When I view *http://127.0.0.1:8000/articles/edit/2* which includes module *images.py, * URL("images/show", args=image.id) in module *images.py* produces *http://127.0.0.1:8000/articles/images/show/2 *instead of *http://127.0.0.1:8000/images/show/2* I am sure this is a classic newB question but I have not found the solution yet. On Monday, June 30, 2014 6:37:03 AM UTC-7, 黄祥 wrote: > > yes, you are right, thank you so much for the additional information, > anthony. > > *models/db.py* > > from gluon import current > current.db = db > current.auth = auth > current.mail = mail > > best regards, > stifan > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.