🚨(backend) fix linting issue
Fix linting issue in the backend codebase.
This commit is contained in:
@@ -11,8 +11,8 @@ from django.core import mail, validators
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
from django.template.base import Template as DjangoTemplate
|
from django.template.base import Template as DjangoTemplate
|
||||||
from django.template.context import Context
|
from django.template.context import Context
|
||||||
from django.utils.html import format_html
|
|
||||||
from django.utils.functional import lazy
|
from django.utils.functional import lazy
|
||||||
|
from django.utils.html import format_html
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
import frontmatter
|
import frontmatter
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ def create_demo(stdout):
|
|||||||
<div class="body">{{ body }}</div>
|
<div class="body">{{ body }}</div>
|
||||||
</div>
|
</div>
|
||||||
</page>
|
</page>
|
||||||
""",
|
""",
|
||||||
css="""
|
css="""
|
||||||
body {
|
body {
|
||||||
background: white;
|
background: white;
|
||||||
@@ -207,7 +207,7 @@ p {
|
|||||||
text-align: justify;
|
text-align: justify;
|
||||||
ligne-height: 0.8;
|
ligne-height: 0.8;
|
||||||
}
|
}
|
||||||
""",
|
""",
|
||||||
is_public=True,
|
is_public=True,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ import pytest
|
|||||||
|
|
||||||
from core import models
|
from core import models
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
pytestmark = pytest.mark.django_db
|
pytestmark = pytest.mark.django_db
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -500,7 +500,7 @@ class Production(Base):
|
|||||||
#
|
#
|
||||||
# In other cases, you should comment the following line to avoid security issues.
|
# In other cases, you should comment the following line to avoid security issues.
|
||||||
# SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
# SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
|
||||||
|
|
||||||
# Modern browsers require to have the `secure` attribute on cookies with `Samesite=none`
|
# Modern browsers require to have the `secure` attribute on cookies with `Samesite=none`
|
||||||
CSRF_COOKIE_SECURE = True
|
CSRF_COOKIE_SECURE = True
|
||||||
|
|||||||
Reference in New Issue
Block a user