Forums

Можно ли использовать SQLite3

Добрый день. Складывается очень смешная ситуация. Я сделал небольшой код на так скажем проверку авторизации в бд. свою бд я загрузил на сайт. При взаимодействии с бд через консоль все работает прекрасно!, а вот при взаимодействии через веб запросы он уже говорит что :

sqlite3.OperationalError: no such table: data

подскажите пожалуйста, что мне делать?

My guess is that you're using a relative path to specify the database file, and when you run your code in a console you are using "cd" to navigate to a working directory where that relative path points to the DB file, but in the running website, the working directory is different. See this help page for hints and tips on how to resolve that kind of problem.