M
M
Miuniverso2015-06-11 21:11:58
JavaScript
Miuniverso, 2015-06-11 21:11:58

How to properly organize the development of Django projects in PyCharm by SHH?

Good afternoon everyone.
Tell me please.
I just have a laptop and a Raspberry Pi.
I need to run projects on raspberry.
The laptop is running PyCharm.
In it, I initially create a Django project using a local interpreter, since Django does not allow selecting a remote one right away.
Then I set up an ssh connection with raspberries and just drop my project on raspberries.
And I launch it using the network ip of my Raspberry.
*** BUT ***
I need to work with MySQL databases.
Both MySQL itself and mysqlclient are installed as a connector.
BUT Django refuses to work with the database, the format of which I specify in setting.py as mysql.
It brings out such beauty.
I don't quite understand how I can fix this.
Gjt6tY5Qbcg.jpg
_____________
Thank you very much for your help.
And then I got stuck in this place.
If I wrote something wrong, please excuse me, I'm new to programming.
I will definitely fix it!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
0
0xD34F, 2018-08-27
@EvgeniiR

Why does it return false?console.log('\n' == separator.value);

Because it \n's a line break. Escape the slash - '\\n' == separator.value.

R
Roman Kitaev, 2015-06-12
@Miuniverso

There can be many problems.
1) Has the project been deployed?
2) Where?
3) How does it run on raspberry?
4) Did you specify an SSH tunnel to the right of the connector?
7cfc32c467d9452eb336236e1a6686b1.png

M
masterziv, 2015-12-06
@masterziv

Например можно запускать питоновый код локально, а к БД соединяться удаленно через ssh туннель.
При этом в коде в параметрах соединения нужно менять только хост и порт. Хост локальный, а порт от туннеля. Потом перед дипломом надо не забыть поменять обратно. Как делать туннель в сети много написано.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question