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
columns database django sqlite
Last synced: about 2 months 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.
- Host: GitHub
- URL: https://github.com/pauloxnet/generatedfields
- Owner: pauloxnet
- License: mit
- Created: 2023-11-07T17:06:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-30T14:45:45.000Z (9 months ago)
- Last Synced: 2025-03-25T12:04:03.181Z (2 months ago)
- Topics: columns, database, django, sqlite
- Language: Python
- Homepage: https://www.paulox.net/2023/11/07/database-generated-columns-part-1-django-and-sqlite/
- Size: 25.4 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
[ 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)