Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Specify Database | Database
Flask Intensive Course: Web Development with Python

bookSpecify Database

Once you have chosen your database, you need to define a path of where it will be stored. You can use 3 slashes /// - means to a relative path or 4 slashes //// is an absolute path. I will go from the root directory of the project.

In the main.py file:

Then, we need to call SQLAlchemy and pop in app to link that application and database together.

Now, we are going to design our database. If you are familiar with Model-View-Controller (please follow the article). Models are a way to structure the data in your database. Imagine that in our database. We need to have a table recipe with different fields such as title, author, description, date, and others.

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 3

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Awesome!

Completion rate improved to 3.85

bookSpecify Database

Svep för att visa menyn

Once you have chosen your database, you need to define a path of where it will be stored. You can use 3 slashes /// - means to a relative path or 4 slashes //// is an absolute path. I will go from the root directory of the project.

In the main.py file:

Then, we need to call SQLAlchemy and pop in app to link that application and database together.

Now, we are going to design our database. If you are familiar with Model-View-Controller (please follow the article). Models are a way to structure the data in your database. Imagine that in our database. We need to have a table recipe with different fields such as title, author, description, date, and others.

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 3
some-alt