mirror of
https://github.com/Fluffy-Bean/Fluffys-website.git
synced 2024-12-26 17:26:06 +00:00
style: format code with black
Format code with black
This commit fixes the style issues introduced in 9f79143
according to the output
from Black.
Details: None
This commit is contained in:
parent
9f7914319d
commit
1360792163
|
@ -4,10 +4,9 @@ from articles.models import Article
|
||||||
|
|
||||||
|
|
||||||
def article_list(request):
|
def article_list(request):
|
||||||
articles = (Article.objects.defer('body')
|
articles = (
|
||||||
.filter(published=True)
|
Article.objects.defer("body").filter(published=True).order_by("-date").all()
|
||||||
.order_by("-date")
|
)
|
||||||
.all())
|
|
||||||
return render(request, "views/articles.html", {"articles": articles})
|
return render(request, "views/articles.html", {"articles": articles})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ DEBUG = False
|
||||||
ALLOWED_HOSTS = ["*"]
|
ALLOWED_HOSTS = ["*"]
|
||||||
|
|
||||||
CSRF_TRUSTED_ORIGINS = [
|
CSRF_TRUSTED_ORIGINS = [
|
||||||
'https://*.leggy.dev',
|
"https://*.leggy.dev",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -87,9 +87,9 @@ WSGI_APPLICATION = "website.wsgi.application"
|
||||||
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
|
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
"default": {
|
||||||
'ENGINE': "django.db.backends.sqlite3",
|
"ENGINE": "django.db.backends.sqlite3",
|
||||||
'NAME': BASE_DIR / 'db.sqlite3',
|
"NAME": BASE_DIR / "db.sqlite3",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue