-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
974dd00
commit 1146bb5
Showing
19 changed files
with
164 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
For more convenient operation, you can apply the configuration of the automatic launch of the project. \ | ||
Do not crawl into the terminal every time and do not write this exhausted command - _python manage.py runserver_. | ||
|
||
## 📃 Instructions for configuring the project configuration. | ||
|
||
1. The first thing to do is to find and click on the Configuration Settings section. \ | ||
It looks like this: | ||
![config1.png](../images/config_edit.png) | ||
|
||
--- | ||
2. After that, you will see an empty Configuration settings window. \ | ||
You will need to click on the "+" in the upper left corner of the configuration window: | ||
![config2.png](../images/config_plus.png) | ||
|
||
--- | ||
3. Next, you need to add the configuration **_Python_**: | ||
![config3.png](../images/config_add.png) | ||
|
||
--- | ||
4. When you do this, you will see an empty configuration section: | ||
![config4.png](../images/config_empty.png) | ||
|
||
--- | ||
5. It will need to be edited as follows: | ||
![config5.png](../images/cofig_exellent.png) | ||
|
||
--- | ||
Now you have everything ready! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Для более удобной работы, можно применить конфигурацию автоматического запуска проекта. \ | ||
Не лазя каждый раз в терминал и не прописывать эту измученную команду - _python manage.py runserver_. | ||
|
||
## 📃 Инструкция для настройки конфигурации проекта. | ||
|
||
1. Первое, что нужно сделать - это найти и нажать на раздел настройки Конфигурации. \ | ||
Выглядит это следующим образом: | ||
![config1.png](../images/config_edit.png) | ||
|
||
--- | ||
2. После чего вы увидите пустое окно настройки Конфигурации. \ | ||
Вам нужно будет нажать на "+" в верхнем левом углу окна конфигурации: | ||
![config2.png](../images/config_plus.png) | ||
|
||
--- | ||
3. Далее надо добавить конфигурацию **_Python_**: | ||
![config3.png](../images/config_add.png) | ||
|
||
--- | ||
4. Когда вы это сделаете у вас выскочит пустой раздел конфигурации: | ||
![config4.png](../images/config_empty.png) | ||
|
||
--- | ||
5. Его нужно будет отредактировать следующим образом: | ||
![config5.png](../images/cofig_exellent.png) | ||
|
||
--- | ||
Теперь у вас все готово! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
When the project is launched, when you log into _swagger_, that is, into the documentation, you may get an error. \ | ||
This is caused with an encoding problem. This can be solved as follows. | ||
|
||
> For more information about why this error may occur, you can read this [link](https://github.com/vklochan/python-logstash/issues/77). | ||
--- | ||
#### 1. Find the file with the encoding error in the console. The path looks like this. And go into it: | ||
![photo_problems1](../../images/photo_2024-02-10_21-38-32.jpg) | ||
|
||
--- | ||
#### 2. There you will see the following code, you will need to fix the moment that is highlighted in yellow: | ||
![photo_problems2](../../images/photo_2024-02-10_21-40-19.jpg) | ||
|
||
--- | ||
#### 3. You need to fix it for this: | ||
![photo_problems3](../../images/photo_2024-02-10_21-40-59.jpg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Когда запускается проект, при входе в _swagger_, то есть в документацию, у вас может выскочить ошибка. \ | ||
Это вызвано с проблемой кодировки. Это можно решить следующим образом. | ||
|
||
> Более подробно почему может возникнуть эта ошибка, можете почитать по этой [ссылке](https://github.com/vklochan/python-logstash/issues/77). | ||
--- | ||
#### 1. Найдите в консоли файл с ошибкой кодировки. Путь выглядит так. И зайдите в него: | ||
![photo_problems1](../../images/photo_2024-02-10_21-38-32.jpg) | ||
|
||
--- | ||
#### 2. Там вы увидите такой код, вам нужно будет исправить момент, который выделен желтым: | ||
![photo_problems2](../../images/photo_2024-02-10_21-40-19.jpg) | ||
|
||
--- | ||
#### 3. Его вам нужно исправить на это: | ||
![photo_problems3](../../images/photo_2024-02-10_21-40-59.jpg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
When starting a project, you need to specify the root of the project. This should be the **_src_** directory. | ||
To do this, you will need a couple of actions: | ||
|
||
--- | ||
1. Right-click on the **_src_** directory and find the _Mark Directory as_ section. | ||
And click on **Sources Root**. It looks like this: | ||
![img.png](../../images/root_project.png) | ||
|
||
--- | ||
2. Next, you will need to go to the **src** directory in the console by typing the _cd src_ command. And it's already **starting** the project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
При запуске проекта вам нужно указать корень проекта. Это должна быть директория **_src_**. | ||
Чтобы это сделать вам нужно будет пару действий: | ||
|
||
--- | ||
1. Нажать правой кнопкой мыши на директорию **_src_** и найти раздел _Mark Directory as_. | ||
И нажать на **Sources Root**. Это выглядит вот так: | ||
![img.png](../../images/root_project.png) | ||
|
||
--- | ||
2. Дальше вам в консоли нужно будет перейти в директорию **src** набрав команду _cd src_. И от неё уже **запускать** проект. |