Change to gunicorn
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-07 21:09:47 +01:00
parent d029fda896
commit 2939b4a515
9 changed files with 124 additions and 16 deletions

View File

@ -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"))
)
),
)

View File

@ -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