You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🔑 Copy `.env.example` to `.env` and change api settings
12
-
13
-
### Install dependencies
14
-
15
-
* 🐍 Install poetry with command `pip install poetry`
16
-
* 📎 Install dependencies with command `poetry install`
17
-
18
-
### Accept migrations
19
-
20
-
🎓 Run `python manage.py migrate`
21
-
22
-
### Run project
23
-
24
-
🚀 Run project via `python manage.py runserver`
25
-
## For developers
26
-
27
-
### Install pre-commit hooks
28
-
29
-
To install pre-commit simply run inside the shell:
15
+
## Базовые команды
30
16
31
17
```bash
32
-
pre-commit install
33
-
```
34
-
35
-
To run it on all of your files, do
36
-
37
-
```bash
38
-
pre-commit run --all-files
39
-
```
40
-
41
-
## Troubleshooting
42
-
43
-
## Errors caused by weasyprint
44
-
45
-
### MacOS
46
-
47
-
Error:
48
-
```
49
-
OSError: cannot load library 'pango-1.0-0': dlopen(pango-1.0-0, 0x0002): tried: 'pango-1.0-0' (no such file), '/System/Volumes/Preboot/Cryptexes/OSpango-1.0-0' (no such file), '/Users/yakser/.pyenv/versions/3.11.9/lib/pango-1.0-0' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/yakser/.pyenv/versions/3.11.9/lib/pango-1.0-0' (no such file), '/opt/homebrew/lib/pango-1.0-0' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/pango-1.0-0' (no such file), '/usr/lib/pango-1.0-0' (no such file, not in dyld cache), 'pango-1.0-0' (no such file), '/usr/local/lib/pango-1.0-0' (no such file), '/usr/lib/pango-1.0-0' (no such file, not in dyld cache). Additionally, ctypes.util.find_library() did not manage to locate a library called 'pango-1.0-0'
50
-
```
51
-
52
-
Fix:
53
-
54
-
```shell
55
-
brew install weasyprint
56
-
```
57
-
58
-
### Windows
59
-
60
-
Error:
18
+
poetry install
19
+
poetry run python manage.py migrate
20
+
poetry run python manage.py runserver
21
+
poetry run python manage.py test
61
22
```
62
-
OSError: cannot load library 'gobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0'
63
-
```
64
-
65
-
Fix:
66
-
67
-
Go to [WeasyPrint docs](https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#windows) step by step install dependencies. If the error persists, add the path to the windows environment variable: `C:\msys64\mingw64\bin`
0 commit comments