Phased out nginx in favor of running django under daphne with asgi.

Adjusted the docker image in favor of this, & fixed urls.py which was
missing the static request responder.
This commit is contained in:
th3r00t
2020-09-11 16:50:17 -04:00
parent 0391bb94a4
commit 68d453edc8
10 changed files with 80 additions and 161 deletions

View File

@@ -19,6 +19,7 @@ from django.contrib.auth import views as auth_views
from django.contrib.auth.models import User
from django.shortcuts import HttpResponse
from django.urls import include, path, re_path
from django.conf.urls.static import static
from interface import views
urlpatterns = [
@@ -67,7 +68,7 @@ urlpatterns = [
auth_views.PasswordResetCompleteView.as_view(),
name='password_reset_complete',
),
]
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
if settings.DEBUG:
import debug_toolbar