tjwalch/django-livereload-server

New Path class isn't supported

fennecinspace opened this issue · 2 comments

When using the new Path class in latest Django versions, static files aren't reloaded on save (they aren't watched) :

BASE_DIR = Path(__file__).resolve().parent.parent
STATIC_DIR = BASE_DIR / 'static'

Doing this on the other hand works :

BASE_DIR = Path(__file__).resolve().parent.parent
STATIC_DIR = os.path.join(BASE_DIR, 'static')

@fennecinspace I don't recognize the setting STATIC_DIR, is it something you use in STATICFILES_DIRS?

@tjwalch

Yes, STATICFILES_DIRS = [ STATIC_DIR ]