This commit is contained in:
@ -1,4 +1,5 @@
|
||||
from django import template
|
||||
from django.conf import settings
|
||||
import time
|
||||
import os
|
||||
|
||||
@ -9,7 +10,11 @@ register = template.Library()
|
||||
def version_date():
|
||||
return time.strftime(
|
||||
"%d-%b-%Y %H:%m",
|
||||
time.gmtime(os.path.getmtime(os.path.abspath(os.path.join(".git")))),
|
||||
time.gmtime(
|
||||
os.path.getmtime(
|
||||
os.path.abspath(os.path.join(settings.BASE_DIR, "..", "..", ".git"))
|
||||
)
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
@ -34,7 +34,6 @@ ALLOWED_HOSTS = ["*"]
|
||||
|
||||
INSTALLED_APPS = [
|
||||
"tracker.apps.TrackerConfig",
|
||||
"django.contrib.admin",
|
||||
"django.contrib.auth",
|
||||
"django.contrib.contenttypes",
|
||||
"django.contrib.sessions",
|
||||
@ -44,6 +43,7 @@ INSTALLED_APPS = [
|
||||
|
||||
if DEBUG:
|
||||
INSTALLED_APPS.append("django_extensions")
|
||||
INSTALLED_APPS.append("django.contrib.admin")
|
||||
|
||||
MIDDLEWARE = [
|
||||
"django.middleware.security.SecurityMiddleware",
|
||||
@ -123,7 +123,7 @@ USE_TZ = True
|
||||
# https://docs.djangoproject.com/en/4.1/howto/static-files/
|
||||
|
||||
STATIC_URL = "static/"
|
||||
STATIC_ROOT = BASE_DIR / "/static"
|
||||
STATIC_ROOT = BASE_DIR / "static"
|
||||
|
||||
# Default primary key field type
|
||||
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
|
||||
|
Reference in New Issue
Block a user