python - Loading data from a (MySQL) database into Django without models -


this might sound bit of odd question - possible load data (in case mysql) table used in django without need model present?

i realise isn't django way, given current scenario, don't know how better solve problem.

i'm working on site, 1 aspect makes use of table of data has been bought third party. columns of interest liklely remain stable, structure of table change subsequent updates data set. table massive (in terms of columns) - i'm not keen on typing out each field in model one-by-one. i'd leave table intact - coming model represents set of columns interested in not ideal solution.

ideally, want have table in database somewhere (possibly separate main site database) , access contents directly using sql.

you can execute raw sql directly against database: see the docs.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -