IIS 7.0 с конвейерным режимом = Интегрированный не загружает изображения/CSS в ASP.NET

Я решил вопрос следующим образом: 1. импортировав from bson.objectid import ObjectId 2. изменив маршрут на этот:

# Single Article
@app.route('/home/<string:id>/', methods=['GET','POST'])
def post(id):
    # Create Mongo Connection
    user = mongo.db.articles

    # execute query
    article = user.find_one({"_id": ObjectId(id)})

    return render_template("post.html", article=article)
7
задан Paul 29 April 2009 в 01:19
поделиться

2 ответа

In IIS 7 when you install the ASP.NET modules, static content is not installed by default. You will need to go into programs and features, then "Turn windows features on or off".

Under IIS section, drill down into WWW services, Common Http features, and check "Static Content".

Without that css, images, html, and other non-dynamic content will not show up.

8
ответ дан 6 December 2019 в 21:19
поделиться

You can use some HTTP sniffing tool (Firebug or Fiddler) and check for failing requests. If you find such requests you can inspect the error message returned by the server.

1
ответ дан 6 December 2019 в 21:19
поделиться
Другие вопросы по тегам:

Похожие вопросы: