forked from pallets/flask
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pallets:main' into main
- Loading branch information
Showing
44 changed files
with
421 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
python3 -m venv .venv | ||
python3 -m venv --upgrade-deps .venv | ||
. .venv/bin/activate | ||
pip install -U pip | ||
pip install -r requirements/dev.txt | ||
pip install -e . | ||
pre-commit install --install-hooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Security issue | ||
url: security@palletsprojects.com | ||
about: Do not report security issues publicly. Email our security contact. | ||
url: https://github.com/pallets/flask/security/advisories/new | ||
about: Do not report security issues publicly. Create a private advisory. | ||
- name: Questions | ||
url: https://stackoverflow.com/questions/tagged/flask?tab=Frequent | ||
about: Search for and ask questions about your code on Stack Overflow. | ||
- name: Questions and discussions | ||
url: https://github.com/pallets/flask/discussions/ | ||
about: Ask questions about your own code on the Discussions tab. | ||
- name: Questions on | ||
url: https://discord.gg/pallets | ||
about: Discuss questions about your code on our Discord chat. | ||
about: Ask questions about your own code on our Discord chat. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
.idea/ | ||
.vscode/ | ||
.venv*/ | ||
venv*/ | ||
__pycache__/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
dist/ | ||
.coverage* | ||
htmlcov/ | ||
.tox/ | ||
docs/_build/ | ||
dist/ | ||
venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Flask | ||
|
||
Flask is a lightweight [WSGI][] web application framework. It is designed | ||
to make getting started quick and easy, with the ability to scale up to | ||
complex applications. It began as a simple wrapper around [Werkzeug][] | ||
and [Jinja][], and has become one of the most popular Python web | ||
application frameworks. | ||
|
||
Flask offers suggestions, but doesn't enforce any dependencies or | ||
project layout. It is up to the developer to choose the tools and | ||
libraries they want to use. There are many extensions provided by the | ||
community that make adding new functionality easy. | ||
|
||
[WSGI]: https://wsgi.readthedocs.io/ | ||
[Werkzeug]: https://werkzeug.palletsprojects.com/ | ||
[Jinja]: https://jinja.palletsprojects.com/ | ||
|
||
|
||
## A Simple Example | ||
|
||
```python | ||
# save this as app.py | ||
from flask import Flask | ||
|
||
app = Flask(__name__) | ||
|
||
@app.route("/") | ||
def hello(): | ||
return "Hello, World!" | ||
``` | ||
|
||
``` | ||
$ flask run | ||
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) | ||
``` | ||
|
||
|
||
## Donate | ||
|
||
The Pallets organization develops and supports Flask and the libraries | ||
it uses. In order to grow the community of contributors and users, and | ||
allow the maintainers to devote more time to the projects, [please | ||
donate today][]. | ||
|
||
[please donate today]: https://palletsprojects.com/donate |
Oops, something went wrong.