Skip to content

Commit afaf028

Browse files
committed
add: Version
1 parent b82788f commit afaf028

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

main/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
from django.conf import settings
12
from django.contrib import admin
23
from django.contrib.auth import admin as auth_admin
34

45
from .models import User
56

6-
admin.site.site_header = 'Tabular Notes'
7+
admin.site.site_header = f"Tabular Notes (v{settings.VERSION}-{'dev' if settings.DEBUG else 'prod'})"
78

89

910
@admin.register(User)

main/settings_dev.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
import os
1414

15+
VERSION = '1.1'
16+
1517
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1618
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
1719

0 commit comments

Comments
 (0)