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

4
+
5
+
This package helps you interact with your [PlanetScale](https://planetscale.com) databases in your Django projects in an easier way.
6
+
7
+
### Usage
8
+
9
+
Install the package by running the following command.
10
+
11
+
```sh
12
+
pip install django-psdb-engine
13
+
```
14
+
15
+
And finally, update your `DATABASES` configuration and change the `ENGINE` field.
16
+
17
+
```python
18
+
DATABASES= {
19
+
'default': {
20
+
'ENGINE': 'django_psdb_engine',
21
+
...
22
+
'OPTIONS': {'ssl': {'ca': ...}}
23
+
}
24
+
}
25
+
```
26
+
27
+
**Note**: Since Django uses the `UTF-8` charset and it points to `utf8mb3` in MySQL and this charset is deprecated in MySQL 8, you may need to add `{"charset": "utf8mb4"}` and migrate your chanegs with no problem.
0 commit comments