---
title: "Discussion on \"Connect Your Django Projects to PlanetScale Databases\" | Hashnode"
description: "Discussion on \"Connect Your Django Projects to PlanetScale Databases\". TL;DR\nPlanetScale is a MySQL-compatible serverless database platform. Since its database service is a bit different from the actual MySQL, there are some limitations that you can't ignore and must resolve to be able to work with their services. This ..."
url: "https://hashnode.com/posts/connect-your-django-projects-to-planetscale-databases/62f7aed2fffdab933bde7a20"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Connect Your Django Projects to PlanetScale Databases](https://blog.imsadra.dev/connect-your-django-projects-to-planetscale-databases?utm_source=hashnode&utm_medium=feed)

TL;DR PlanetScale is a MySQL-compatible serverless database platform. Since its database service is a bit different from the actual MySQL, there are some limitations that you can't ignore and must resolve to be able to work with their services. This ...

Aug 13, 2022 · 3 min read · blog.imsadra.dev  
Updated Nov 16, 2022  
Read the article

-   [#planetscale](https://hashnode.com/tag/planetscale)
-   [#django](https://hashnode.com/tag/django)
-   [#databases](https://hashnode.com/tag/databases)
-   [#mysql](https://hashnode.com/tag/mysql)
-   [#python-libraries](https://hashnode.com/tag/python-libraries)

## Written by

[Sadra Yahyapour](https://hashnode.com/@lnxpy)

@lnxpy

  
[View profile](https://hashnode.com/@lnxpy)

Campus Expert at GitHub · Open-Source Contributor · Python Developer · ML Enthusiast

A passionate software developer who enjoys sharing his thoughts with others and learning from them vise versa!

## Responses 2

Markdown supported · ⌘↵ to post

[Mike Stojan](https://hashnode.com/@fooforge)

[Aug 16, 2022](https://hashnode.com/posts/connect-your-django-projects-to-planetscale-databases/62f7aed2fffdab933bde7a20/comment/62fb7a976a96d5d861fa62d3)

Hi [Sadra Yahyapour](https://hashnode.com/@lnxpy),

Thanks for writing this guide how to get started with PlanetScale and Python!

One quick comment on this part:

> Since the MySQL engine uses utf8bm3 charset and it’s not supported by PlanetScale’s engine yet, you may need to add {'charset': 'utf8bm4'} to OPTIONS in order to migrate your changes with no problem.

PlanetScale [supports](https://planetscale.com/docs/reference/mysql-compatibility#overview) the `utf8`, `utf8mb4` and `utf8mb3` character sets. Though, per the [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-sets.html) `utf8mb3` is deprecated and `utf8mb4` should be used instead. The alias (or reference) `utf8` still points to `utf8mb3`, but it's expected to change to `utf8mb4` with a future release.

[Sadra Yahyapour](https://hashnode.com/@lnxpy)

[Aug 16, 2022](https://hashnode.com/posts/connect-your-django-projects-to-planetscale-databases/62f7aed2fffdab933bde7a20/comment/62fb7a976a96d5d861fa62d3#reply-62fb7e5b6a96d5d861fa63f1)

Hi Mike, thank you so much for mentioning that miss-understanding. That's so true. I'll update both the package README and this blog post as well. I just need some time. Hope this utility helps developers use PlanetScale in a simpler way.

[Farhad Uneci](https://hashnode.com/@feriun)

[Aug 16, 2022](https://hashnode.com/posts/connect-your-django-projects-to-planetscale-databases/62f7aed2fffdab933bde7a20/comment/62fb75116a96d5d861fa6178)

Great idea Sadra! Thank you for this one, I've tested your engine, and it works perfectly fine.

One quick note here: Planet scale uses `os` module to read .env file data, I recommend using `python-decouple` for that (os module fails at importing the settings).

[Sadra Yahyapour](https://hashnode.com/@lnxpy)

[Aug 16, 2022](https://hashnode.com/posts/connect-your-django-projects-to-planetscale-databases/62f7aed2fffdab933bde7a20/comment/62fb75116a96d5d861fa6178#reply-62fb7d776a96d5d861fa639b)

You're welcome. It's kinda personal-preference.
