I am using the internal Django + database (mysql). but I need to query another external database (mysql). In case, can I make an external database model? The database already exists. Just need to request .. Thank you.
I think you need to take a look at this documentation. It explains how to register multiple databases and then query them. https://docs.djangoproject.com/en/dev/topics/db/multi-db/ To be specific from which you are querying DB, you can go to this part of the document https://docs.djangoproject.com/en / dev / topics / db / multi-db / # manually-selecting-a-database-for-a-queryset
Source: https://habr.com/ru/post/1392681/More articles:Open popup on submit button - javascriptHow to create a new data table in Orange? - pythonWith the chrome extension, how to add html just below the page body tag? - javascriptPractices for Scientific Programming - c ++Using RemoteObject (AMF) from a Flash or Pure AS3 project - flexConcurrentDictionary and Clear () are a function. Creating export stream values โโwithout data loss - dictionaryStarting with GWT and Eclipse - javaMemcached Java client with minimal dependencies - javaHow can I guarantee that T is a class? - genericsSql Server searching for multiple words and ranking results - sql-serverAll Articles