diff --git a/README.md b/README.md index 159b912..9d02a7a 100644 --- a/README.md +++ b/README.md @@ -24,11 +24,12 @@ 3. πŸ“š [Π˜ΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌΡ‹Π΅ зависимости](#dependencies_used) 4. πŸ“ˆ [Бвязи ΠΌΠ΅ΠΆΠ΄Ρƒ Ρ‚Π°Π±Π»ΠΈΡ†Π°ΠΌΠΈ](#table) 5. πŸ“½οΈ [ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ€Π°Π±ΠΎΡ‚Ρ‹](#example_work) -6. πŸ”Œ [Установка ΠΈ запуск](#installation_and_launch) +6. πŸ”§ [ΠžΡΠΎΠ±Π΅Π½Π½ΠΎΡΡ‚ΠΈ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°](#project_features) +7. πŸ”Œ [Установка ΠΈ запуск](#installation_and_launch) - πŸ“” [Установка ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° Π² IDE](#installation_ide) - 🐳 [Установка ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° Π² Docker](#installation_docker) -7. πŸ“— [ДокумСнтация API](#documentation_api) -8. πŸ” [ЛицСнзия](#license) +8. πŸ“— [ДокумСнтация API](#documentation_api) +9. πŸ” [ЛицСнзия](#license) ## ✏️ ОписаниС ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° ## @@ -94,14 +95,36 @@ ## πŸ“½οΈ ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ€Π°Π±ΠΎΡ‚Ρ‹. ## -1. ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ€Π°Π±ΠΎΡ‚Ρ‹ [копирования Π‘Π°Π·Ρ‹ Π”Π°Π½Π½Ρ‹Ρ…](docs/videos/Postman_t9M2iW3Xku.mp4) Π²Ρ‹ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ ΡΠΊΠ°Ρ‡Π°Ρ‚ΡŒ ΠΈ ΠΏΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ. -2. ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ€Π°Π±ΠΎΡ‚Ρ‹ [ΠžΡ„ΠΎΡ€ΠΌΠ»Π΅Π½ΠΈΡ Π·Π°ΠΊΠ°Π·Π° ΠΈ Π΅Π³ΠΎ ΠΎΠΏΠ»Π°Ρ‚Π° Π² Yookassa](docs/videos/pycharm64_Jr15ACpje5.mp4) Π²Ρ‹ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ ΡΠΊΠ°Ρ‡Π°Ρ‚ΡŒ ΠΈ ΠΏΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ. +1. ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ€Π°Π±ΠΎΡ‚Ρ‹ копирования **_Π‘Π°Π·Ρ‹ Π”Π°Π½Π½Ρ‹Ρ…_**. Π‘ΠΊΠ°Ρ‡Π°Ρ‚ΡŒ [Π²ΠΈΠ΄Π΅ΠΎ](docs/videos/Postman_t9M2iW3Xku.mp4) Π² Π»ΡƒΡ‡ΡˆΠ΅ΠΌ качСствС. +![copy_bd](docs/gifs/Postman_t9M2iW3Xku-_1_.gif) + +--- + +2. ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ€Π°Π±ΠΎΡ‚Ρ‹ **_ΠžΡ„ΠΎΡ€ΠΌΠ»Π΅Π½ΠΈΡ Π·Π°ΠΊΠ°Π·Π° ΠΈ Π΅Π³ΠΎ ΠΎΠΏΠ»Π°Ρ‚Π° Π² Yookassa_**. Π‘ΠΊΠ°Ρ‡Π°Ρ‚ΡŒ [Π²ΠΈΠ΄Π΅ΠΎ](docs/videos/pycharm64_Jr15ACpje5.mp4) Π² Π»ΡƒΡ‡ΡˆΠ΅ΠΌ качСствС. +![pay_yookassa](docs/gifs/pycharm64_Jr15ACpje5.gif) + + +## πŸ”§ ΠžΡΠΎΠ±Π΅Π½Π½ΠΎΡΡ‚ΠΈ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° ## +>[!WARNING] +> Если Ρƒ вас Π²ΠΎΠ·Π½ΠΈΠΊΠ°ΡŽΡ‚ ошибки ΠΏΡ€ΠΈ запускС ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°, ΠΏΠ°Ρ€Ρƒ Ρ€Π΅ΠΊΠΎΠΌΠ΅Π½Π΄Π°Ρ†ΠΈΠΉ Π½ΠΈΠΆΠ΅ ΠΌΠΎΠ³ΡƒΡ‚ Π²Π°ΠΌ ΠΏΠΎΠΌΠΎΡ‡ΡŒ! +>1. ΠŸΡ€ΠΈ запускС ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° Ρƒ вас Π²ΠΎΠ·Π½ΠΈΠΊΠ°Π΅Ρ‚ ошибка. Π­Ρ‚Π° [ссылка](docs/problems/root_project/RootProjectProblem.md) ΠΌΠΎΠΆΠ΅Ρ‚ ΠΏΠΎΠΌΠΎΡ‡ΡŒ Π²Π°ΠΌ. +>2. Π£ вас Π²ΠΎΠ·Π½ΠΈΠΊΠ°Π΅Ρ‚ ошибка Π² Π»ΠΎΠ³ΠΈΡ€ΠΎΠ²Π°Π½ΠΈΠΈ ΠΏΡ€ΠΈ Π²Ρ…ΠΎΠ΄Π΅ Π² Π΄ΠΎΠΊΡƒΠΌΠ΅Π½Ρ‚Π°Ρ†ΠΈΡŽ. Π­Ρ‚Π° [ссылка](docs/problems/logging/LoggingProblem.md) ΠΌΠΎΠΆΠ΅Ρ‚ ΠΏΠΎΠΌΠΎΡ‡ΡŒ Π²Π°ΠΌ. + +- Π­Ρ‚ΠΎΡ‚ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ Π½Π°Ρ‡ΠΈΠ½Π°Π» ΡΠΎΠ·Π΄Π°Π²Π°Ρ‚ΡŒΡΡ Π±Π΅Π· знания Ρ‚ΠΎΠ³ΠΎ, ΠΊΠ°ΠΊ Π±ΠΎΠ»Π΅Π΅ Π³Ρ€Π°ΠΌΠΎΡ‚Π½ΠΎ ΠΏΠΈΡΠ°Ρ‚ΡŒ REST API ΠΈ \ +ΠΊΠ°ΠΊ ΠΏΡ€Π°Π²ΠΈΠ»ΡŒΠ½ΠΎ Ρ€Π΅Π°Π»ΠΈΠ·ΠΎΠ²Ρ‹Π²Π°Ρ‚ΡŒ сам ΠΈΠ½Ρ‚Π΅Ρ€Π½Π΅Ρ‚ ΠΌΠ°Π³Π°Π·ΠΈΠ½. По этой ΠΏΡ€ΠΈΡ‡ΠΈΠ½Π΅ ΠΌΠΎΠ³ΡƒΡ‚ Π±Ρ‹Ρ‚ΡŒ ΠΊΠ°ΠΊΠΈΠ΅-Ρ‚ΠΎ Π½Π΅Π΄ΠΎΡ‡Π΅Ρ‚Ρ‹. +- ΠŸΠΎΡ‡Π΅ΠΌΡƒ Π² этом ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π΅ Π½Π΅Ρ‚ микросСрвисов? ΠŸΡ€ΠΎ микросСрвисы Π½Π° Ρ‚ΠΎΡ‚ ΠΌΠΎΠΌΠ΅Π½Ρ‚ я ΡΠ»Ρ‹ΡˆΠ°Π», Π½ΠΎ ΠΊΠ°ΠΊ Ρ€Π΅Π°Π»ΠΈΠ·ΠΎΠ²Π°Ρ‚ΡŒ ΠΈΡ… Π½Π΅ ΠΏΠΎΠ½ΠΈΠΌΠ°Π». +По этой ΠΏΡ€ΠΈΡ‡ΠΈΠ½Π΅ этот ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ ΠΈΠΌΠ΅Π΅Ρ‚ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ ΠΎΠ΄ΠΈΠ½ сСрвис. + + +- Для Π±ΠΎΠ»Π΅Π΅ ΡƒΠ΄ΠΎΠ±Π½ΠΎΠ³ΠΎ использования ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°: \ +Если Ρ…ΠΎΡ‚ΠΈΡ‚Π΅, Ρ‡Ρ‚ΠΎΠ±Ρ‹ ваш ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ запускался с ΠΊΠ½ΠΎΠΏΠΊΠΈ **Run** (_Shift+F10_) ΠΈ примСнялся **Debug** (_Shift+F9_) Π·Π°ΠΉΠ΄ΠΈΡ‚Π΅ ΠΏΠΎ этой [ссылкС](docs/configurations/Config.md) ## πŸ”Œ Установка ΠΈ запуск ## > [!WARNING] > Если Π½Π° вашСм ΠΊΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π΅ **Π΅ΡΡ‚ΡŒ** всё ниТСпСрСчислСнноС, Ρ‚ΠΎ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ _ΠΏΡ€ΠΎΠΏΡƒΡΡ‚ΠΈΡ‚ΡŒ_ это ΠΏΡ€Π΅Π΄ΡƒΠΏΡ€Π΅ΠΆΠ΄Π΅Π½ΠΈΠ΅. > - ΠœΠΎΠΆΠ΅Ρ‚ ΠΏΠΎΠ½Π°Π΄ΠΎΠ±ΠΈΡ‚ΡŒΡΡ рСгистрация Π² [Sentry](https://sentry.io). +> - ΠœΠΎΠΆΠ΅Ρ‚ ΠΏΠΎΠ½Π°Π΄ΠΎΠ±ΠΈΡ‚ΡŒΡΡ рСгистрация Π² [Yookassa](https://yookassa.ru/developers/payment-acceptance/testing-and-going-live/testing) для тСстирования ΠΏΠ»Π°Ρ‚Π΅ΠΆΠ°. ### πŸ“” Установка ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° Π² IDE ## diff --git a/docs/README.en.md b/docs/README.en.md index 0461e12..0fae967 100644 --- a/docs/README.en.md +++ b/docs/README.en.md @@ -24,11 +24,12 @@ 3. πŸ“š [Dependencies used](#dependencies_used) 4. πŸ“ˆ [Relationships between tables](#table) 5. πŸ“½οΈ [Example work](#example_work) -6. πŸ”Œ [Installation and launch](#installation_and_launch) +6. πŸ”§ [Project Features](#project_features) +7. πŸ”Œ [Installation and launch](#installation_and_launch) - πŸ“” [Installing the project in the IDE](#installation_ide) - 🐳 [Installing the project in Docker](#installation_docker) -7. πŸ“— [API Documentation](#documentation_api) -8. πŸ” [License](#license) +8. πŸ“— [API Documentation](#documentation_api) +9. πŸ” [License](#license) ## ✏️ Description of the project ## @@ -93,14 +94,36 @@ An approximate list of [endpoints](endpoints/Endpoints.en.md) and their capabili ## πŸ“½οΈ Example work. ## -1. An example of how [Database copying works](videos/Postman_t9M2iW3Xku.mp4) you can download and watch. -2. An example of the work of [Placing an order and paying for it in Yookassa](videos/pycharm64_Jr15ACpje5.mp4) you can download and watch. +1. An example of how **_Database copying works_**. Download [video](videos/Postman_t9M2iW3Xku.mp4) in the best quality. +![copy_bd](gifs/Postman_t9M2iW3Xku-_1_.gif) + +--- + +2. An example of the work of _**Placing an order and paying for it in Yookassa_**. Download [video](videos/pycharm64_Jr15ACpje5.mp4) in the best quality. +![pay_yookassa](gifs/pycharm64_Jr15ACpje5.gif) + + +## πŸ”§ Project Features ## +>[WARNING] +> If you encounter errors when starting a project, a couple of recommendations below can help you! +>1. When you start the project, you get an error. This [link](problems/root_project/RootProjectProblem.en.md) can help you. +>2. You have a logging error when logging into the documentation. This [link](problems/logging/LoggingProblem.en.md) can help you. + +- This project began to be created without knowing how to write the REST API more competently and \ +how to properly implement the online store itself. For this reason, there may be some shortcomings. +- Why are there no microservices in this project? I had heard about microservices at that time, \ +but I did not understand how to implement them. For this reason, this project has only one service. + + +- For more convenient use of the project: \ +If you want your project to start with the **Run** button (_Shift+F10_) and apply **Debug** (_Shift+F9_), go to this [link](configurations/Config.en.md) ## πŸ”Œ Installation and launch ## > [!WARNING] > If you **have** all the following on your computer, you can skip this warning. > - You may need to register in [Sentry](https://sentry.io) +> - You can try to register with [Yookassa](https://yookassa.ru/developers/payment-acceptance/testing-and-going-live/testing) to test the platform. ### πŸ“” Installing the project in the IDE ### diff --git a/docs/configurations/Config.en.md b/docs/configurations/Config.en.md new file mode 100644 index 0000000..45e6e2f --- /dev/null +++ b/docs/configurations/Config.en.md @@ -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! \ No newline at end of file diff --git a/docs/configurations/Config.md b/docs/configurations/Config.md new file mode 100644 index 0000000..ecc14b3 --- /dev/null +++ b/docs/configurations/Config.md @@ -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) + +--- +Π’Π΅ΠΏΠ΅Ρ€ΡŒ Ρƒ вас всС Π³ΠΎΡ‚ΠΎΠ²ΠΎ! \ No newline at end of file diff --git a/docs/gifs/Postman_t9M2iW3Xku-_1_.gif b/docs/gifs/Postman_t9M2iW3Xku-_1_.gif new file mode 100644 index 0000000..ddcab10 Binary files /dev/null and b/docs/gifs/Postman_t9M2iW3Xku-_1_.gif differ diff --git a/docs/gifs/pycharm64_Jr15ACpje5.gif b/docs/gifs/pycharm64_Jr15ACpje5.gif new file mode 100644 index 0000000..6674a27 Binary files /dev/null and b/docs/gifs/pycharm64_Jr15ACpje5.gif differ diff --git a/docs/images/cofig_exellent.png b/docs/images/cofig_exellent.png new file mode 100644 index 0000000..862ae3e Binary files /dev/null and b/docs/images/cofig_exellent.png differ diff --git a/docs/images/config_add.png b/docs/images/config_add.png new file mode 100644 index 0000000..2437a2f Binary files /dev/null and b/docs/images/config_add.png differ diff --git a/docs/images/config_edit.png b/docs/images/config_edit.png new file mode 100644 index 0000000..c114db5 Binary files /dev/null and b/docs/images/config_edit.png differ diff --git a/docs/images/config_empty.png b/docs/images/config_empty.png new file mode 100644 index 0000000..0a5fb21 Binary files /dev/null and b/docs/images/config_empty.png differ diff --git a/docs/images/config_plus.png b/docs/images/config_plus.png new file mode 100644 index 0000000..ad83520 Binary files /dev/null and b/docs/images/config_plus.png differ diff --git a/docs/images/photo_2024-02-10_21-38-32.jpg b/docs/images/photo_2024-02-10_21-38-32.jpg new file mode 100644 index 0000000..9fb6505 Binary files /dev/null and b/docs/images/photo_2024-02-10_21-38-32.jpg differ diff --git a/docs/images/photo_2024-02-10_21-40-19.jpg b/docs/images/photo_2024-02-10_21-40-19.jpg new file mode 100644 index 0000000..6835455 Binary files /dev/null and b/docs/images/photo_2024-02-10_21-40-19.jpg differ diff --git a/docs/images/photo_2024-02-10_21-40-59.jpg b/docs/images/photo_2024-02-10_21-40-59.jpg new file mode 100644 index 0000000..9667623 Binary files /dev/null and b/docs/images/photo_2024-02-10_21-40-59.jpg differ diff --git a/docs/images/root_project.png b/docs/images/root_project.png new file mode 100644 index 0000000..eca73de Binary files /dev/null and b/docs/images/root_project.png differ diff --git a/docs/problems/logging/LoggingProblem.en.md b/docs/problems/logging/LoggingProblem.en.md new file mode 100644 index 0000000..664fc0b --- /dev/null +++ b/docs/problems/logging/LoggingProblem.en.md @@ -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) \ No newline at end of file diff --git a/docs/problems/logging/LoggingProblem.md b/docs/problems/logging/LoggingProblem.md new file mode 100644 index 0000000..f85ccda --- /dev/null +++ b/docs/problems/logging/LoggingProblem.md @@ -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) diff --git a/docs/problems/root_project/RootProjectProblem.en.md b/docs/problems/root_project/RootProjectProblem.en.md new file mode 100644 index 0000000..e3e3fed --- /dev/null +++ b/docs/problems/root_project/RootProjectProblem.en.md @@ -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. \ No newline at end of file diff --git a/docs/problems/root_project/RootProjectProblem.md b/docs/problems/root_project/RootProjectProblem.md new file mode 100644 index 0000000..5c79d02 --- /dev/null +++ b/docs/problems/root_project/RootProjectProblem.md @@ -0,0 +1,10 @@ +ΠŸΡ€ΠΈ запускС ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° Π²Π°ΠΌ Π½ΡƒΠΆΠ½ΠΎ ΡƒΠΊΠ°Π·Π°Ρ‚ΡŒ ΠΊΠΎΡ€Π΅Π½ΡŒ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π°. Π­Ρ‚ΠΎ Π΄ΠΎΠ»ΠΆΠ½Π° Π±Ρ‹Ρ‚ΡŒ дирСктория **_src_**. +Π§Ρ‚ΠΎΠ±Ρ‹ это ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ Π²Π°ΠΌ Π½ΡƒΠΆΠ½ΠΎ Π±ΡƒΠ΄Π΅Ρ‚ ΠΏΠ°Ρ€Ρƒ дСйствий: + +--- +1. ΠΠ°ΠΆΠ°Ρ‚ΡŒ ΠΏΡ€Π°Π²ΠΎΠΉ ΠΊΠ½ΠΎΠΏΠΊΠΎΠΉ ΠΌΡ‹ΡˆΠΈ Π½Π° Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΡŽ **_src_** ΠΈ Π½Π°ΠΉΡ‚ΠΈ Ρ€Π°Π·Π΄Π΅Π» _Mark Directory as_. +И Π½Π°ΠΆΠ°Ρ‚ΡŒ Π½Π° **Sources Root**. Π­Ρ‚ΠΎ выглядит Π²ΠΎΡ‚ Ρ‚Π°ΠΊ: +![img.png](../../images/root_project.png) + +--- +2. Π”Π°Π»ΡŒΡˆΠ΅ Π²Π°ΠΌ Π² консоли Π½ΡƒΠΆΠ½ΠΎ Π±ΡƒΠ΄Π΅Ρ‚ ΠΏΠ΅Ρ€Π΅ΠΉΡ‚ΠΈ Π² Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΡŽ **src** Π½Π°Π±Ρ€Π°Π² ΠΊΠΎΠΌΠ°Π½Π΄Ρƒ _cd src_. И ΠΎΡ‚ Π½Π΅Ρ‘ ΡƒΠΆΠ΅ **Π·Π°ΠΏΡƒΡΠΊΠ°Ρ‚ΡŒ** ΠΏΡ€ΠΎΠ΅ΠΊΡ‚. \ No newline at end of file