Я пытаюсь следовать этому руководству , чтобы соединить django с устаревшей базой данных oracle, я немного запутался, что вводить в Имя. Кроме того, я немного запутался, как установить Instant Client, чтобы мое приложение django / python могло видеть мгновенный клиент.
Я на Windows 10, django 3.0.1, python 3.8
1.) Прежде всего, когда я подключаюсь к базе данных с помощью менеджера предприятия, я вижу это (отредактировано): ![enter image description here](https://i.stack.imgur.com/WBtax.png)
So when I fill in my django, this is what I put(edited):
![enter image description here](https://i.stack.imgur.com/tDXw7.png)
in the Name, am I suppose to put ServerName (following the enterprise manager image) or do I put servername/schema that I'm trying to connect to?
2.) I contacted the admin, and the Oracle database is 11g, and also in Visual Studio, I connected to the database and checked the version, it is
![enter image description here](https://i.stack.imgur.com/b3DUk.png)
So I download the мгновенный клиент для 11.2.0.4.0 (32 бит)
Я использую 32-битный, потому что я думаю, что мой python 32-битный.
![enter image description here](https://i.stack.imgur.com/ECptE.png)
Unzipped it into C:\instantclient_11_2
Added C:\instantclient_11_2 to my System Environment Variables, in the PATH
And tried to run the following
![enter image description here](https://i.stack.imgur.com/DId0u.png)
And I receive the error:
![enter image description here](https://i.stack.imgur.com/2jDdN.png)
Но согласно документации здесь , мне нужно установить его в lib_dir, но я не уверен, где находится переменная lib_dir? это переменная среды? Или что-то в моем приложении? Settings.py?