Hi guys I am new to django and have built my first application that is being used to track and compare pricelists from vendors and it is working awesomly, I have had a request for a new feature and I am alittle boggled at to how I am going to do it..Basically I wasnt to create a view which returns read only data(a report) from an external database which is not the django database. I dont want to copy the data to the django database and use a models as then concurreny become an issueWhat would you guys recommened..I was thinking on implenting a odbc connection from the views.py method called for my url ? but database call from the view , sound a abit dodgy.Any ideas ?
Email Disclaimer | Quote Disclaimer | All business is undertaken subject to our General Trading Conditions, a copy of which is available on request and on our website www.freightman.com --
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ewQAAfxJlJ4J.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Hi Russel,First off thank you for the suggestion, I am going to give it a whirl and see how it works out.. I have a couple of concerns about the pricing database it the* it is on mssql and the data is spread accross 3 database on the same server so the query would have to be cross database.. which also pose's a problem.
* the db's have like 300 table each..
Before you answer I wat thinking of accessing the database on the view *yuck* via pyodbc.after your answer I have a couple more questions ?Is is possible to override how a model is loaded from the database with raw sql and then overide the save and update methods to do nothing ? I have look at ovveriding __init__ but all recommendation are against it, but since I am not saving would it make any difference ?