@@ -19,7 +19,7 @@ One of these database management systems (DBMS) is called SQLite. SQLite was cre
SQL is a special-purpose programming language designed for managing data held in a [databases](https://pythonspot.com/python-database/). The language has been around since 1986 and is worth learning. The [is an old funny video about SQL](https://www.youtube.com/watch?v=5ycx9hFGHog)
As you are doing web development, you want to avoid spending time on programming things that have already been solved. On the other hand, if you are an experienced web developer a web framework may not offer everything you need.
...
...
@@ -30,7 +30,7 @@ As you are doing web development, you want to avoid spending time on programming
Django and Flask are the most popular web frameworks. However, you may want to evaluate the frameworks. An overview:
@@ -64,7 +64,7 @@ The most popular python web application framework is **Django**, followed by **F
If you want to know more about Django, [read here.](https://pythonspot.com/django-tutorial-building-a-note-taking-app/)Did you know the websites of [NASA](https://www.nasa.gov/), [Bitbucket](https://bitbucket.org/) and [Pinterest](https://www.pinterest.com/) were made with Django?
With the [Google Charts API](https://developers.google.com/chart/interactive/docs/gallery) you can display live data on your site. There are a lot of great charts there that are easy to add to your Flask app. We simply give the data that we got from the server through JSON and parsed, to the Google Charts API.
We use bootstrap to style the form.Bootstrap is a popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web. It makes front-end web development faster and easier. The output will be:
...
...
@@ -92,7 +92,7 @@ if __name__ == "__main__":
```
## 烧瓶登记表
## Flask 注册表
We use the same principle to create a registration form asking for name, email and password. We update the Form class:
Start qt4-designer from your applications menu. The [QT](https://pythonspot.com/en/pyqt4/) Designer application will appear:![QT_Designer](img/c5c710d4eea36d37879737f96ff29bc9.jpg)
If you want to start with python web development, you could use a web framework named Django. It is designed to be fast, secure and scalable. It comes with an object-relational mapper (ORM), which means that objects in Python are mapped to objects in a database.
...
...
@@ -59,7 +59,7 @@ This will create the directory mysite. Open mysite/mysite/settings.py. You can c