AttributeError: 'DAL' object has no attribute 'brands'
I think I've boiled this down as simple as I can. the table does indeed exist. I'm sure I'm missing something very basic.
Hi!
As I see, you defined your table in the db.py, but 'db=DAL(...) ' is already exist in this file, I mean auth-settings and etc.
If you want to use another database for your tables, I suppose, you must use another storage (not storage.sqlite) and another name for it ('my_db' instead 'db' for example)
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/Pc5NmA9Vytc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
|
Это сообщение свободно от вирусов и вредоносного ПО благодаря avast! Antivirus защита активна. |
You are right! But I mean that possible error's cause is the second assignment 'db=DAL(...) ' (after auth-settings and etc.)
I've found others with this similar error, however the solutions don't seem to apply as far as I can tell in my simplified instance...
# db.py
My Mistake. I did indeed find the db=DAL(...) elsewhere located. Thank you so much for letting me know what to look for.