Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 6 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
DEBUG=
DJANGO_SECRET_KEY=
DEBUG=True
DJANGO_SECRET_KEY=examplekey

EMAIL_USER=
EMAIL_PASSWORD=
EMAIL_HOST=
EMAIL_PORT=
EMAIL_HOST=1
EMAIL_PORT=1

SENTRY_DSN=

Expand All @@ -14,7 +14,7 @@ DATABASE_PASSWORD=
DATABASE_HOST=
DATABASE_PORT=

SELECTEL_ACCOUNT_ID=
SELECTEL_ACCOUNT_ID=-1
SELECTEL_CONTAINER_NAME=
SELECTEL_CONTAINER_PASSWORD=
SELECTEL_CONTAINER_USERNAME=
Expand All @@ -26,4 +26,4 @@ TELEGRAM_BOT_TOKEN=
TELEGRAM_CHANNEL=

CLICKUP_API_TOKEN=
CLICKUP_SPACE_ID=
CLICKUP_SPACE_ID=-1
6 changes: 3 additions & 3 deletions .github/workflows/django-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
python-version: 3.11

- name: cache poetry install
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.local
key: poetry-1.2.2-0
Expand All @@ -32,7 +32,7 @@ jobs:

- name: cache deps
id: cache-deps
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: .venv
key: pydeps-${{ hashFiles('**/poetry.lock') }}
Expand All @@ -46,4 +46,4 @@ jobs:
- name: Run tests
run: poetry run python manage.py test
env:
DEBUG: True
DEBUG: True
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM python:3.11

RUN apt update --no-install-recommends -y
RUN apt install -y cmake
RUN rm -rf /var/lib/apt/lists/*

ENV PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
up:
docker compose -f docker-compose.yml up -d
down:
docker compose -f docker-compose.yml down
docker compose -f docker-compose.yml down
build:
docker compose -f docker-compose.yml build
77 changes: 75 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
🔑 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
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
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`
* 🐚 Активируйте виртуальное окружение: `poetry shell`

### Accept migrations

Expand All @@ -22,6 +24,77 @@
### Run project

🚀 Run project via `python manage.py runserver`

### Run project in docker

You can run project in docker with commands from Makefile (e.g. `make up`)

## 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
```

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 local 3.11
```

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 docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
command: bash ./scripts/startup.sh
volumes:
- ./log:/procollab/log
- ./:/procollab/.
env_file:
- .env
environment:
Expand Down