Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 70 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
🔑 Copy `.env.example` to `.env` and change api settings

### Install dependencies

* 🐍 Install poetry with command `pip install poetry`
Before installing dependencies, make sure that you have python 3.11 (see the recommendations section below)

* 🐍 Install poetry with command `pip install poetry==1.2.2`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

poetry shell после установки поетри нужно запустить чтобы вирутальное окружение создалось

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

докину

* 📎 Install dependencies with command `poetry install`

### Accept migrations
Expand All @@ -22,6 +23,73 @@
### Run project

🚀 Run project via `python manage.py runserver`

## Recommendations

### 1.Installing Pyenv

Clone Pyenv from the official GitHub repository:

```zsh
curl https://pyenv.run | bash
```

Add Pyenv to your shell profile (e.g., .bashrc, .bash_profile, or .zshrc):

```zsh
export PATH="$HOME/.pyenv/bin:$PATH"eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
```

Apply changes to your shell environment:

```zsh
source ~/.bashrc # or equivalent profile, e.g., for Zsh use .zshrc
```

Verify Pyenv is installed correctly:

pyenv --version

### 2. Installing Python 3.11

Once Pyenv is set up, you can install Python 3.11 with the following steps:

Install Python 3.11:

```zsh
pyenv install 3.11.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

можно просто 3.11

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

поправил

```

Verify Python 3.11 has been installed:

pyenv versions

### 3. Setting Python 3.11 as the Default Version

To set Python 3.11 as the default global version, use the following command:

```zsh
pyenv global 3.11.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не не, лучше pyenv local 3.11

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

поправил

```

This will switch your system's Python interpreter to use Python 3.11 by default.

### 4. Verification

Check that Python 3.11 is now the active version:

```zsh
python --version
```

You should see:

```zsh
Python 3.11.0
```

## For developers

### Install pre-commit hooks
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ packages = []

[tool.poetry.dependencies]
python = "^3.11"
poetry = { version = "1.2.2", optional = true }
djangorestframework = "^3.14.0"
flake8 = "^5.0.4"
python-decouple = "^3.6"
Expand Down