Dear ALL ,
i Defined a table in my db.py but when i start the application , it gives
me an error that my table dose not exist , i dont understand , any help
please :
Error :<class 'sqlite3.OperationalError'> no such table: NewsCategory
TRACEBACK
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
Traceback (most recent call last):
File "C:\web2py-2.9\gluon\restricted.py", line 209, in restricted
exec ccode in environment
File "C:/web2py-2.9/applications/ward/models/db.py"
<http://127.0.0.1:8000/admin/edit/ward/models/db.py>, line 181, in <module>
for i in db().select(db.NewsCategory.ALL):
File "C:\web2py-2.9\gluon\dal.py", line 8766, in select
return adapter.select(self.query,fields,attributes)
File "C:\web2py-2.9\gluon\dal.py", line 2094, in select
return super(SQLiteAdapter, self).select(query, fields, attributes)
File "C:\web2py-2.9\gluon\dal.py", line 1594, in select
return self._select_aux(sql,fields,attributes)
File "C:\web2py-2.9\gluon\dal.py", line 1559, in _select_aux
self.execute(sql)
File "C:\web2py-2.9\gluon\dal.py", line 1671, in execute
return self.log_execute(*a, **b)
File "C:\web2py-2.9\gluon\dal.py", line 1665, in log_execute
ret = self.cursor.execute(*a, **b)
OperationalError: no such table: NewsCategory
--