这是我的网址:
我正在运行Express,所以在我的app.js中,我尝试获取url参数"test“,将其发送到我的routes/index.js
我发送了一个静态变量,没有问题,使用:
app.js中的代码
app.locals.url = 'a test string';
并在我的路由/index.js中接收
var url;
url = req.app.locals.url;
你知道我在app.js中是怎么做到的吗:
app.locals.url = {the parameter "test" in the http://localhost:300
我是个菜鸟,这实际上不是问题。我的tiny_mce在django开发服务器上工作得很好,但在生产服务器上不能工作。我认为这与url配置有关,因为我在浏览器中尝试从页面的源代码中获取tiny_mce时遇到了这个错误:
Page not found (404)
Request Method: GET
Request URL: http://sav.2eng.ru/js/tiny_mce/tiny_mce.js
"templates/js/tiny_mce/tiny_mce.js" does not exist
我使用了这个教程:我的url配置是