"Flask Web Development: Python-based Web application development actual combat" drainage pit

Source: Internet
Author: User

1.from flask.ext.script import Manager will error;

Change from Flask_script import Manager to resolve (other plugins can also be resolved later)

2. Page 32nd, the time on the page displayed after the operation of the book is not displayed;

Cause: It's because index.html didn't cite base.html.

{% extends "base.html"%} {% block scripts%} {{super ()}} {{moment.include_moment ()}}<p> the local date and time is    {{moment (current_time). Format (' LLL ')}}.</p ><p> that is    {{moment (Current_time). Fromnow (refresh=true)}}</p>{% endblock%}

can be resolved;

"Flask Web Development: Python-based Web application development actual combat" drainage pit

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.