We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b82788f commit afaf028Copy full SHA for afaf028
main/admin.py
@@ -1,9 +1,10 @@
1
+from django.conf import settings
2
from django.contrib import admin
3
from django.contrib.auth import admin as auth_admin
4
5
from .models import User
6
-admin.site.site_header = 'Tabular Notes'
7
+admin.site.site_header = f"Tabular Notes (v{settings.VERSION}-{'dev' if settings.DEBUG else 'prod'})"
8
9
10
@admin.register(User)
main/settings_dev.py
@@ -12,6 +12,8 @@
12
13
import os
14
15
+VERSION = '1.1'
16
+
17
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
18
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
19
0 commit comments