I have the database backup script in python which inserts some data in mysql database .
Now my Django is in different database.
How can i access different database because i don’t have any objects in Models.py.
i want to display some data in django interface
Yes, you can setup multiple database and access every one of them.
you can get the specified database connection cursor using this:
where
my_db_aliasis your another db alias .check the doc:
https://docs.djangoproject.com/en/1.3/topics/db/multi-db/