我正在尝试安装 django-debug 工具栏。使用 django 1.6.5 和工具栏 1.3.2
我安装了 pip 并将此行添加到我的设置文件 INSTALLED_APPS:
...
django_toolbar,
也在设置中:
STATIC_URL = '/static/'
最佳答案
您应该在设置文件中声明 STATIC_ROOT 和 STATICFILES_DIRS。 你的设置文件看起来像
STATIC_ROOT = ' '
STATIC_URL = '/static/'
STATICFILES_DIRS = ( (' Assets ', '/home/...../...../static'), )
其中 '/home/...../...../static' 是您的静态目录的路径。
关于python - django-debug-toolbar 安装导致 : No such file or directory: '/var/www/static' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30986887/