The study of SQLite on Centos7.2

Source: Internet
Author: User
Tags sqlite

The study of SQLite on Centos7.2

Going to learn a very simple way to use the database.
Reference http://www.runoob.com/sqlite/sqlite-tutorial.html

First, the preparatory work

You may need to install SQLite on CentOS First, here try ' sudo yum install SQLite ', be prompted to already exist.
Use Python to install a SQLITE-API library pip install sqlite3 . I am prompted not to support my current Python version (2.7.6).

Second, create a database

CD to the directory where you want to store the comment.db, using the following command.

[[Email protected]2-0001Home# sqlite3 Comment.dbSQLite version3.7. -  -- to- - xx: About: AEnter". Help"  forInstructionsenter SQL statements terminated with a";"Sqlite>.quit#退出数据库

The above statement is used to create the success comment.db . sourcecrt 7.0.0 32bit Han version is very difficult to use, has been dropped line did not respond.
Reference 1 Http://www.oschina.net/translate/the-flask-mega-tutorial-part-i-hello-world This translation is very good.
Refer to 2 https://www.linuxhub.org/?p=2473.
Flask-sqlalchemy configuration reference for four databases https://www.cnblogs.com/agmcs/p/4445583.html

Application of Flask manage.py in the third section

(There is a problem: my static files cannot be accessed through the extranet, possibly because I didn't put them in the static/directory.) If not, you may need to consider nginx configuration problems? )

Reference

Webpage htmlhttp://v3.bootcss.com/components/#navbar-brand-image, like this minimalist style.

To-dos
    • Familiarize yourself with the git command to clone the code from the remote repository to the server. (server loaded with Git) recently found a very useful with a private warehouse! There is no free private repository compared to GitHub. Ali produced must be a boutique.

    • Modify existing HTML, familiar with template inheritance, (FLASK-JINJA2)

    • The server installs MySQL and learns to use it.
?

The study of SQLite on Centos7.2

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.