cmc-csci040 icon indicating copy to clipboard operation
cmc-csci040 copied to clipboard

Twitter Clone Error

Open lindsay-lew opened this issue 7 months ago • 1 comments

Hi, I am getting this error when I run my project.py file: sqlite3.OperationalError: no such table: users.

I have the exact same code that we wrote in class, but the error started happening on Thursday. It just goes to an internal server error when I try to click the login page on my website. I am wondering, is the twitter_clone.db file supposed to have any content in it? If not, where would the users table live?

Let me know what you think! Thanks!

lindsay-lew avatar May 03 '25 16:05 lindsay-lew

Yes, twitter_clone.db is supposed to have content. It must be created using the create_db.py file from the practice_quiz folder.

If you would like a reference, I believe there is an example of creating the database and resolving this error in the lecture recordings from both Thursday and Tuesday this week.

mikeizbicki avatar May 04 '25 05:05 mikeizbicki