Skip to content

Commit 1efecec

Browse files
acsanymartin-martinbrendawelesbzaczynski
authored
Add Materials for "A Close Look at a FastAPI Example Application" (#693)
* Add Materials for "A Close Look at a FastAPI Example Application" * Remove unused function * Implement TR updates and remove main_start.py file * Try fixing linter errors * Fix import missing newline * Apply suggestions from code review Co-authored-by: Martin Breuss <martin-martin@users.noreply.github.com> * Remove None and async * Update README.md * Fix linter issues * Update GitHub Actions to lint with Python 3.14 and isort * Rearrange import order with isort instead of Ruff * Update requirements with isort * Remove isort, configure Ruff format --------- Co-authored-by: Martin Breuss <martin-martin@users.noreply.github.com> Co-authored-by: martin-martin <breuss.martin@gmail.com> Co-authored-by: brendaweles <160772586+brendaweles@users.noreply.github.com> Co-authored-by: Bartosz Zaczyński <bartosz.zaczynski@gmail.com>
1 parent 16ad784 commit 1efecec

File tree

134 files changed

+323
-258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+323
-258
lines changed

.github/workflows/linters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
include:
21-
- {name: Linux313, python: '3.13.7', os: ubuntu-latest}
21+
- {name: Linux314, python: '3.14.0', os: ubuntu-latest}
2222
steps:
2323
- name: Check out repository
2424
uses: actions/checkout@v2

build-a-blog-from-scratch-django/django-blog/blog/admin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
from django.contrib import admin
2-
31
from blog.models import Category, Comment, Post
2+
from django.contrib import admin
43

54

65
class CategoryAdmin(admin.ModelAdmin):

build-a-blog-from-scratch-django/django-blog/blog/views.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
from django.http import HttpResponseRedirect
2-
from django.shortcuts import render
3-
41
from blog.forms import CommentForm
52
from blog.models import Comment, Post
3+
from django.http import HttpResponseRedirect
4+
from django.shortcuts import render
65

76

87
def blog_index(request):

celery-async-tasks/source_code_final/feedback/forms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from django import forms
2-
32
from feedback.tasks import send_feedback_email_task
43

54

celery-async-tasks/source_code_final/feedback/urls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from django.urls import path
2-
32
from feedback.views import FeedbackFormView, SuccessView
43

54
app_name = "feedback"

celery-async-tasks/source_code_final/feedback/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from django.views.generic.base import TemplateView
22
from django.views.generic.edit import FormView
3-
43
from feedback.forms import FeedbackForm
54

65

celery-async-tasks/source_code_initial/feedback/urls.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from django.urls import path
2-
32
from feedback.views import FeedbackFormView, SuccessView
43

54
app_name = "feedback"

celery-async-tasks/source_code_initial/feedback/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from django.views.generic.base import TemplateView
22
from django.views.generic.edit import FormView
3-
43
from feedback.forms import FeedbackForm
54

65

code-image-generator/source_code_final/app.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import base64
22

3-
from flask import (
4-
Flask,
5-
redirect,
6-
render_template,
7-
request,
8-
session,
9-
url_for,
10-
)
3+
from flask import Flask, redirect, render_template, request, session, url_for
114
from pygments import highlight
125
from pygments.formatters import HtmlFormatter
136
from pygments.lexers import Python3Lexer

code-image-generator/source_code_step_02/app.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
from flask import (
2-
Flask,
3-
redirect,
4-
render_template,
5-
request,
6-
session,
7-
url_for,
8-
)
1+
from flask import Flask, redirect, render_template, request, session, url_for
92

103
app = Flask(__name__)
114
app.secret_key = (

0 commit comments

Comments
 (0)