Шукаєте відповіді та рішення тестів для Python Fundamentals? Перегляньте нашу велику колекцію перевірених відповідей для Python Fundamentals в softserve.academy.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
In root folder of project two files are located. There are helloFile.txt with some text and main.py with the next script.
What we obtain as result of script execution?
In root folder of project only one file is located. It contains the next script
What we obtain as result of its execution?
In root folder of project two files are located. There are helloFile.txt with some text and main.py with the next script.
What we obtain as result of script execution?
In root folder of project only one file is located. It contains the next script
What we obtain as result of its execution?
What is virtual environment?
What is Flask?
What is app.config['SQLALCHEMY_DATABASE_URI'] used for?
In Flask, we can use two Route URLs that has the same name
@app.route('/edit', methods=['GET','POST'])
def FirstEdit():
return 'First Edit'
@app.route('/edit', methods=['GET','POST'])
def SecondEdit():
return 'Second Edit'
In flask, we can have two view functions with the same name.
@app.route('/edit')
def show():
return 'edit post'
@app.route('/show')
def show():
return 'show post'
In flask, we can have more than one url routes for one function.