Update version to 0.2.0 and add version context processor for footer display
All checks were successful
Build and push Docker image / build (push) Successful in 2m21s
All checks were successful
Build and push Docker image / build (push) Successful in 2m21s
This commit is contained in:
parent
8faff47696
commit
2478ec95e8
5 changed files with 11 additions and 3 deletions
|
@ -1 +1 @@
|
|||
© <a href="https://edgarpierre.fr">Edgar P. Burkhart</a> – <a href="{% url "legal" %}">Mentions légales</a>
|
||||
Musik {{ VERSION }} – © <a href="https://code.edgarpierre.fr/edpibu/musik">Edgar P. Burkhart</a> – <a href="{% url "legal" %}">Mentions légales</a>
|
||||
|
|
5
musik/context_processors.py
Normal file
5
musik/context_processors.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from django.conf import settings
|
||||
|
||||
|
||||
def version(request):
|
||||
return {"VERSION": settings.VERSION}
|
|
@ -13,6 +13,8 @@ https://docs.djangoproject.com/en/5.2/ref/settings/
|
|||
import os
|
||||
from pathlib import Path
|
||||
|
||||
VERSION = "0.2.0"
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
||||
|
@ -71,6 +73,7 @@ TEMPLATES = [
|
|||
"django.template.context_processors.request",
|
||||
"django.contrib.auth.context_processors.auth",
|
||||
"django.contrib.messages.context_processors.messages",
|
||||
"musik.context_processors.version",
|
||||
],
|
||||
},
|
||||
},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "musik"
|
||||
version = "0.1.5"
|
||||
version = "0.2.0"
|
||||
description = "Le jeu de Musik."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
|
|
2
uv.lock
generated
2
uv.lock
generated
|
@ -423,7 +423,7 @@ wheels = [
|
|||
|
||||
[[package]]
|
||||
name = "musik"
|
||||
version = "0.1.5"
|
||||
version = "0.2.0"
|
||||
source = { virtual = "." }
|
||||
dependencies = [
|
||||
{ name = "celery" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue