From f180d750fda77e4c2a38012d88539a970cfab227 Mon Sep 17 00:00:00 2001 From: ErQrYfkrju <65288684+ErQrYfkrju@users.noreply.github.com> Date: Thu, 18 Feb 2021 21:44:26 +0300 Subject: [PATCH] fix static package_data for offline mode package_data 'static/*' won`t include sub directories so offline mode would result in 404 for static resources under js, css, fonts --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bf9b78b..1839681 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( packages=find_packages(), # packages=find_packages(include=['openpredict']), # package_dir={'openpredict': 'openpredict'}, - package_data={'': ['static/*', 'templates/*']}, + package_data={'': ['static/*', 'static/**/*', 'templates/*']}, include_package_data=True, entry_points={ 'console_scripts': [