Change to gunicorn #4

Merged
lukas merged 7 commits from change-to-gunicorn into main 2023-01-07 21:17:49 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 0d20b543b0 - Show all commits

View File

@ -6,7 +6,7 @@ RUN npm install && \
FROM python:3.10.9-alpine FROM python:3.10.9-alpine
ENV VERSION_NUMBER 0.1.1-7-g1ccfdc3 ENV VERSION_NUMBER 0.1.1-8-gf7b69f7
ENV PROD 1 ENV PROD 1
RUN apk add \ RUN apk add \

View File

@ -16,10 +16,13 @@ Including another URLconf
from django.contrib import admin from django.contrib import admin
from django.urls import include, path from django.urls import include, path
from django.views.generic import RedirectView from django.views.generic import RedirectView
from django.conf import settings
urlpatterns = [ urlpatterns = [
path("admin/", admin.site.urls),
path("", RedirectView.as_view(url="/tracker/list-sessions")), path("", RedirectView.as_view(url="/tracker/list-sessions")),
path("tracker/", include("tracker.urls")), path("tracker/", include("tracker.urls")),
] ]
if settings.DEBUG:
urlpatterns.append(path("admin/", admin.site.urls))