-
Notifications
You must be signed in to change notification settings - Fork 1
fix: read.me #458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
fix: read.me #458
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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` | ||
| * 📎 Install dependencies with command `poetry install` | ||
|
|
||
| ### Accept migrations | ||
|
|
@@ -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 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. можно просто 3.11
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. не не, лучше pyenv local 3.11
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
poetry shell после установки поетри нужно запустить чтобы вирутальное окружение создалось
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
докину