Re: [web2py] Re: using appadmin for other models than db.py in web2py

2013-12-14 Thread deepak sandhu
perfect it worked I was earlier trying to remove the db definition from coffee but it used to cause an error as its should be in alpha numeric which I was ignoring On Sat, Dec 14, 2013 at 12:45 PM, Anthony wrote: > The problem is that you are defining db = DAL(...) in both coffee.py and > db.p

[web2py] Re: using appadmin for other models than db.py in web2py

2013-12-14 Thread Anthony
The problem is that you are defining db = DAL(...) in both coffee.py and db.py. Because db.py comes after coffee.py, the "db" object defined in coffee.py is simply replaced by the one defined in db.py, so none of the models in coffee.py will be available to any controller, including the appadmi

[web2py] Re: using appadmin for other models than db.py in web2py

2013-12-14 Thread Massimo Di Pierro
There is only one app for addpadmin: http://127.0.0.1:8000/imageblog/appadmin/ It should give you access to all the models, including coffee.py On Saturday, 14 December 2013 12:01:44 UTC-6, deepak sandhu wrote: > > in web2py we I created a new application called imageblog and in models on > def