我正在運行django-nvd3演示項目,看到沒有顯示餅圖。 我看到下面的請求失敗nvd3與演示項目中的'Get'請求失敗?
GET http://localhost:8000/static/nvd3/src/nv.d3.css
GET http://localhost:8000/static/nvd3/src/nv.d3.css show_graph:3
GET http://localhost:8000/static/nvd3/nv.d3.min.js show_graph:5
GET http://localhost:8000/static/d3/d3.min.js
我已經安裝了Python-nvd3及其所有的依賴。這裏是我對配置文件的配置
BASE_DIR = dirname(dirname(__file__))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/home/media/media.lawrence.com/static/"
STATIC_ROOT = join(BASE_DIR, 'static')
BOWER_COMPONENTS_ROOT = join(BASE_DIR, 'components')
# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
STATIC_URL = '/static/'
# Additional locations of static files
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'compressor.finders.CompressorFinder',
'djangobower.finders.BowerFinder',
)
BOWER_INSTALLED_APPS = (
'jquery',
'underscore',
'd3#3.3.6',
'nvd3#1.1.12-beta',
)
我在想什麼?
你解決了嗎?我得到相同的錯誤 – doniyor