Some problems encountered in learning Flask web development and their solutions

Source: Internet
Author: User
Q:extdeprecationwarning:importing flask.ext.script is deprecated, use flask_script instead.
. Format (x=modname), extdeprecationwarning
A: Convert flask.ext.script. ext. To underscore _ q:userwarning:sqlalchemy_track_modifications adds significant overhead and would be Disabled by default in the future. Set it to True to suppress this warning.
Warnings.warn (' sqlalchemy_track_modifications adds significant overhead and'll is disabled by default in the future. Set it to True to suppress this warning. ')
A: Add a line to your code
Track_modifications = App.config.setdefault (' sqlalchemy_track_modifications '    , True)
Q:heroku login appears as a problem:

A: The reason is that the Ruby version is too low and needs to be upgraded. The order is as follows:

$ sudo apt-add-repository ppa:brightbox/ruby-ng
$ sudo apt-get update
$ sudo apt-get install ruby2.2

$ ruby2. 2-v
Ruby 2.2.0p0 (2014-12-25 revision 49005) [X86_64-LINUX-GNU]

Reference Link: 1.http://stackoverflow.com/questions/26595620/how-to-install-ruby-2-1-4-on-ubuntu-14-04
2.http://qiita.com/35_267_/items/29badc389a1df4d56c6f

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.