Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pauloxnet/generatedfields

Code related to the article "Database generated columns ⁽¹⁾: Django & SQLite" (paulox.net), to be used to experiment with the new `GeneratedField` added in Django 5.0.
https://github.com/pauloxnet/generatedfields

Last synced: 25 days ago
JSON representation

Code related to the article "Database generated columns ⁽¹⁾: Django & SQLite" (paulox.net), to be used to experiment with the new `GeneratedField` added in Django 5.0.

Awesome Lists containing this project

README

        

# Django Generated Fields examples

Code related to the article [Database generated columns ⁽¹⁾: Django & SQLite](https://www.paulox.net/2023/11/07/database-generated-columns-part-1-django-and-sqlite/), to be used to experiment with the new `GeneratedField` added in Django 5.0.

[![© 2023 Paolo Melchiorre “View of clouds over the Labrador Peninsula (Canada) taken from a commercial flight.”](https://www.paulox.net/images/derivatives/wide/1050w/1000014469-01.webp "© 2023 Paolo Melchiorre CC BY-NC-SA “© 2023 Paolo Melchiorre “View of clouds over the Labrador Peninsula (Canada) taken from a commercial flight.”")](https://www.paulox.net/2023/11/07/database-generated-columns-part-1-django-and-sqlite/)

> View of clouds over the Labrador Peninsula (Canada) taken from a commercial flight.

## 💻 Set Up

### ⚗️ Virtual environment

Creating and activating the virtual environment:

```console
$ python3 -m venv .venv
$ source .venv/bin/activate
```

### 🦄 Django

Installing the latest version of Django (tested with Django 5.0-5.1):

```console
$ python -m pip install -r requirements.txt
```

## 🐚 Shell

Start the shell with the command:

```console
$ python -m manage shell
```

## 🔬 Tests

Running the defined tests:

```console
$ python -m manage test
```

## ⚖️ License

The **Django Generated Fields examples** project is licensed under the [MIT License](https://github.com/pauloxnet/generatedfields/blob/main/LICENSE).

## 👥 Authors

### 👤 Paolo Melchiorre

- 🌍 Blog: [www.paulox.net](https://www.paulox.net)
- 🐙 Github: [@[email protected]](https://github.com/pauloxnet)
- 🦣 Mastodon: [@[email protected]](https://fosstodon.org/@paulox)
- 🐦️ Twitter: [@[email protected]](https://twitter.com/pauloxnet)