Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/pauloxnet/generatedfields
- Owner: pauloxnet
- License: mit
- Created: 2023-11-07T17:06:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-22T17:20:03.000Z (12 months ago)
- Last Synced: 2024-05-02T00:58:40.294Z (6 months ago)
- Language: Python
- Size: 25.4 KB
- Stars: 11
- 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.
[![© 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)