Error when DIRS does not exist
TimVanMourik opened this issue · 1 comments
TimVanMourik commented
Hi there!
I was using your very useful package, but encountered an error. When the setting TEMPLATES = [ ... ]
does not contain DIRS, the following error is thrown:
File "/usr/local/lib/python3.6/site-packages/livereload/management/commands/livereload.py", line 47, in handle
watch_dirs.extend(template['DIRS'])
KeyError: 'DIRS
It can be circumvented from my side by making an empty 'DIRS': ''
variable in my settings, but it would be nicer if it were fixed in:
django-livereload-server/livereload/management/commands/livereload.py
, line 47
Thanks! Keep up the good work :)
TimVanMourik commented
Thanks!