Doesn't work, no solution for updating static files in docker dev for now...

Doesn't work, no solution for updating static files in docker dev for now besides collectstatic or rebuilding container.
parent 09eff80f
......@@ -75,6 +75,7 @@ services:
DEBUG: 1
# disable server static files from collectstatic during development, passthrough to django staticfiles urlpatterns
UWSGI_STATIC_MAP:
container.
# mount current source into container to allow changes to propagate without container rebuild
volumes:
- .:/source/
......
......@@ -20,7 +20,6 @@ from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.template.response import TemplateResponse
from django.views import static
# Django 1.10 http://stackoverflow.com/questions/38744285/
# django-urls-error-view-must-be-a-callable-or-a-list-tuple-in-the-case-of-includ#38744286
......@@ -53,8 +52,6 @@ if settings.DEBUG:
except ImportError:
pass
urlpatterns.append(url(r'^static/(?P<path>.*)$', static.serve, {'document_root': settings.STATIC_ROOT}))
# debugging
# urlpatterns += [url(r'^silk/', include('silk.urls', namespace='silk'))]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment