gpt4 book ai didi

python-2.7 - odoo安装后,CSS和JS都找不到

转载 作者:行者123 更新时间:2023-12-04 22:59:44 24 4
gpt4 key购买 nike

经过多次尝试,我终于可以安装 odoo 8,但是,当我连接到它时,浏览器重定向到/web/database/manager 并加载了 HTML( Logo 出现,标题标签中出现 Odoo.

问题是 JavaScript 和 CSS 没有加载(通过在 firebug 中看到,我看到很多未找到的错误,例如,/web/static/lib/jquery.blockUI/jquery.blockUI.js)

当我看到/opt/odoo/addons/web/目录时,我看到所有文件都在那里。

奇怪的是只出现了公司logo,它的路径是:/web/binary/company_logo。奇怪的是路径实际上并不存在。

任何帮助将不胜感激
谢谢

编辑:

我已启用所有日志类型,并且在启动服务器时看到了这一点:

INFO ? openerp: addons paths: ['/home/odoo/.local/share/Odoo/addons/8.0', u'/opt/odoo/addons', '/opt/odoo/openerp/addons']

页面最多的路径其实是/opt/odoo/addons,所以配置正确。也许由于某种原因,路径没有被读取。

当我看到 Firebug 时,我看到了这个:
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/css/full.css"
full.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/es5-shim/es5-shim.min.js"
es5-shim.min.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/underscore/underscore.js"
underscore.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/globalization/en-US.js"
en-US.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/spinjs/spin.js"
spin.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/underscore.string/lib/underscore.string.js"
undersc...ring.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery/jquery.js"
jquery.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.blockUI/jquery.blockUI.js"
jquery.blockUI.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.hotkeys/jquery.hotkeys.js"
jquery.hotkeys.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.placeholder/jquery.placeholder.js"
jquery....lder.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.timeago/jquery.timeago.js"
jquery.timeago.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.form/jquery.form.js"
jquery.form.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js"
jquery.ba-bbq.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/core.js"
core.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/sugarpak.js"
sugarpak.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/parser.js"
parser.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/extras.js"
extras.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.validate/jquery.validate.js"
jquery....date.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.autosize/jquery.autosize.js"
jquery....size.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.scrollTo/jquery.scrollTo-min.js"
jquery....-min.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/cleditor/jquery.cleditor.js"
jquery....itor.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.textext/jquery.textext.js"
jquery.textext.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/select2/select2.js"
select2.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"
jquery-...stom.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.timepicker/js/jquery-ui-timepicker-addon.js"
jquery-...ddon.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.notify/js/jquery.notify.js"
jquery.notify.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/bootstrap/js/bootstrap.js"
bootstrap.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/backbone/backbone.js"
backbone.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/qweb/qweb2.js"
qweb2.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/openerpframework.js"
openerp...work.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/py.js/lib/py.js"
py.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/testing.js"
testing.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/pyeval.js"
pyeval.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/core.js"
core.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/formats.js"
formats.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/chrome.js"
chrome.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/views.js"
views.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/data.js"
data.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/data_export.js"
data_export.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/search.js"
search.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/boot.js"
boot.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_list.js"
view_list.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_form.js"
view_form.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_list_editable.js"
view_li...able.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_tree.js"
view_tree.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/base/static/src/js/apps.js"
apps.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/tour.js"
tour.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/fontawesome/css/font-awesome.css"
font-awesome.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/cleditor/jquery.cleditor.css"
jquery....tor.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.textext/jquery.textext.css"
jquery....ext.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/select2/select2.css"
select2.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.9.0.custom.css"
jquery-...tom.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.timepicker/css/jquery-ui-timepicker-addon.css"
jquery-...don.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.notify/css/ui.notify.css"
ui.notify.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/bootstrap/css/bootstrap.css"
bootstrap.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/css/base.css"
base.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/css/data_export.css"
data_export.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/base/static/src/css/modules.css"
modules.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/globalization/en-US.js"
en-US.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/spinjs/spin.js"
spin.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery/jquery.js"
jquery.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.blockUI/jquery.blockUI.js"
jquery.blockUI.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.hotkeys/jquery.hotkeys.js"
jquery.hotkeys.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.placeholder/jquery.placeholder.js"
jquery....lder.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.timeago/jquery.timeago.js"
jquery.timeago.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.form/jquery.form.js"
jquery.form.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ba-bbq/jquery.ba-bbq.js"
jquery.ba-bbq.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/core.js"
core.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/parser.js"
parser.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/sugarpak.js"
sugarpak.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/datejs/extras.js"
extras.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.validate/jquery.validate.js"
jquery....date.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.autosize/jquery.autosize.js"
jquery....size.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.scrollTo/jquery.scrollTo-min.js"
jquery....-min.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/cleditor/jquery.cleditor.js"
jquery....itor.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.textext/jquery.textext.js"
jquery.textext.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/select2/select2.js"
select2.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js"
jquery-...stom.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.timepicker/js/jquery-ui-timepicker-addon.js"
jquery-...ddon.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.notify/js/jquery.notify.js"
jquery.notify.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/bootstrap/js/bootstrap.js"
bootstrap.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/backbone/backbone.js"
backbone.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/qweb/qweb2.js"
qweb2.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/openerpframework.js"
openerp...work.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/py.js/lib/py.js"
py.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/boot.js"
boot.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/testing.js"
testing.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/pyeval.js"
pyeval.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/core.js"
core.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/formats.js"
formats.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/chrome.js"
chrome.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/views.js"
views.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/data.js"
data.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/data_export.js"
data_export.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/search.js"
search.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_list.js"
view_list.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_form.js"
view_form.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_list_editable.js"
view_li...able.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/view_tree.js"
view_tree.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/base/static/src/js/apps.js"
apps.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/js/tour.js"
tour.js
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/fontawesome/css/font-awesome.css"
font-awesome.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.textext/jquery.textext.css"
jquery....ext.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/cleditor/jquery.cleditor.css"
jquery....tor.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/select2/select2.css"
select2.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.9.0.custom.css"
jquery-...tom.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.timepicker/css/jquery-ui-timepicker-addon.css"
jquery-...don.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/jquery.ui.notify/css/ui.notify.css"
ui.notify.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/lib/bootstrap/css/bootstrap.css"
bootstrap.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/css/base.css"
base.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/web/static/src/css/data_export.css"
data_export.css
"NetworkError: 404 NOT FOUND - http://des.desytec.com:8069/base/static/src/css/modules.css"
modules.css
ReferenceError: $ is not defined


$(function() {

编辑:我已经安装了nodejs,并且发生了同样的事情。这是安装输出:
Installed:
nodejs.x86_64 0:0.10.35-1.el5.hg

Complete!
root@des [/usr/local/src/less-less.js-e40c2f5]# npm install -g npm
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
npm@2.7.6 /usr/local/lib/node_modules/npm
clean-css[/usr/local/src/less-less.js-e40c2f5]# npm install -g less less-plugin-
/usr/local/bin/lessc -> /usr/local/lib/node_modules/less/bin/lessc
less-plugin-clean-css@1.5.0 /usr/local/lib/node_modules/less-plugin-clean-css
âââ clean-css@3.1.9 (commander@2.6.0, source-map@0.1.43)

less@2.5.0 /usr/local/lib/node_modules/less
âââ graceful-fs@3.0.6
âââ mime@1.3.4
âââ image-size@0.3.5
âââ promise@6.1.0 (asap@1.0.0)
âââ errno@0.1.2 (prr@0.0.0)
âââ mkdirp@0.5.0 (minimist@0.0.8)
âââ source-map@0.4.2 (amdefine@0.1.0)
âââ request@2.55.0 (caseless@0.9.0, json-stringify-safe@5.0.0, aws-sign2@0.5.0, forever-agent@0.6.1, stringstream@0.0.4, oauth-sign@0.6.0, tunnel-agent@0.4.0, isstream@0.1.2, node-uuid@1.4.3, qs@2.4.1, combined-stream@0.0.7, form-data@0.2.0, mime-types@2.0.10, http-signature@0.10.1, bl@0.9.4, tough-cookie@0.12.1, hawk@2.3.1, har-validator@1.6.1)

最佳答案

您需要安装 nodejs 和更少。如何安装这些取决于您的操作系统。
以下是 Ubuntu 14.04 LTS 的示例:

Ubuntu 14.04 存储库中的 NodeJS 和 NPM 包由于已过时而无法使用。

按照 NodeJS 网站上的说明进行操作:

curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -
sudo apt-get install -y nodejs
sudo npm install -g npm

然后安装Less和附件:
sudo npm install -g less less-plugin-clean-css

关于python-2.7 - odoo安装后,CSS和JS都找不到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29443838/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com