practical-tutorials / practical-tutorials/project-based-learning

Typo in project "Build A Simple Web App With Flask"

Open
#457 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
284k
Forks
36.3k
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

'''
from flask import Flask
app = Flask(name)

@app.route("/")
def index():
return "Index!"

@app.route("/hello")
def hello():
return "Hello World!"

@app.route("/members")
def members():
return "Members"

@app.route("/members/string:name/")
def getMember(name):
return name</string:name>

if name == "main":
app.run()
'''
Should create a simple flask application

Current Behavior

There is a syntax error in the code due to an incorrect closing tag </string:name> inside the route decorator.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Find the project titled "Build A Simple Web App With Flask" and locate the Flask example containing the /members/string:name/ route. Correct the incorrect closing tag shown in the issue, then verify that the example has no syntax error and still creates a simple Flask application.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python
Domain
documentation, web-dev
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.