Answer the question
In order to leave comments, you need to log in
How to use your database in django?
Hello! Tell a newbie. I am writing a project for myself, this is a bot in python PyTelegramBotApi. I created my sqlite3 database, in it I created a table with students and a table with elders using regular sql queries. Students register through the bot and enter the database. Same story with seniors. Now I need to develop a website so that the elders can go to it and upload manuals to the database. Since they are already registered as a headman, when they enter the site, the data is taken from the table that has already been created and they have access to the site. How to do it with django. Is it possible to use ready-made databases in django without using models.
Answer the question
In order to leave comments, you need to log in
Sqlite for that and light that only one program can work at the same time - if the bot and the site are done in one application - through a common connector for both the bot and the site - then yes. And for good, take PosgreSQL or MySQL not to reinvent the wheel - cutlets separately, flies separately. And the model will still have to be created even for the existing database - you describe all the tables as classes and you're done.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question