fix static files updating for docker dev environment

parent fd636a84
......@@ -71,8 +71,6 @@ services:
# django decides what to log based on type of console
TERM: xterm-color
DEBUG: 1
# disable server static files from collectstatic during development
UWSGI_STATIC_MAP:
# mount current source into container to allow changes to propagate without container rebuild
volumes:
- .:/source/
......
......@@ -18,6 +18,7 @@ import sys
from django.conf import settings
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
# Django 1.10 http://stackoverflow.com/questions/38744285/
......@@ -41,6 +42,8 @@ if settings.ADMIN:
urlpatterns += admin_urls
if settings.DEBUG:
urlpatterns += staticfiles_urlpatterns()
try:
import debug_toolbar
urlpatterns = [
......
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