Merge remote-tracking branch 'github/main'
This commit is contained in:
commit
cf9779b827
2 changed files with 7 additions and 3 deletions
|
@ -10,4 +10,4 @@ COPY app/ app/
|
||||||
|
|
||||||
WORKDIR /src/app
|
WORKDIR /src/app
|
||||||
|
|
||||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
CMD ["gunicorn", "moneropro.wsgi:application", "--bind", "0.0.0.0:8000"]
|
||||||
|
|
|
@ -15,9 +15,13 @@ Including another URLconf
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path, include
|
from django.urls import path, include, re_path
|
||||||
|
|
||||||
|
from django.conf import settings
|
||||||
|
from django.views.static import serve
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("admin/", admin.site.urls),
|
path("admin/", admin.site.urls),
|
||||||
path(r"", include(("charts.urls", "charts"), namespace="charts")),
|
path("", include(("charts.urls", "charts"), namespace="charts")),
|
||||||
|
re_path(r"^static/(?P<path>.*)$", serve, {"document_root": settings.STATIC_ROOT}),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue