fix: Preserve HTTPS X-Forwarded-Proto in Nginx and configure SECURE_PROXY_SSL_HEADER in Django to fix 403 CSRF verification on Django Admin

This commit is contained in:
Richard
2026-07-31 11:43:43 +02:00
parent b7a5158254
commit 896dfda240
39 changed files with 366 additions and 499 deletions
+10 -32
View File
@@ -30,20 +30,18 @@ form .form-row p {
flex-wrap: wrap;
}
.form-multiline > div,
.form-multiline > fieldset {
.form-multiline > div {
padding-bottom: 10px;
}
/* FORM LABELS */
legend, label {
label {
font-weight: normal;
color: var(--body-quiet-color);
font-size: 0.8125rem;
}
.required legend, legend.required,
.required label, label.required {
font-weight: bold;
}
@@ -93,20 +91,6 @@ fieldset .inline-heading,
/* ALIGNED FIELDSETS */
.aligned fieldset {
flex-grow: 1;
border-top: none;
}
.aligned fieldset > div {
width: 100%;
}
.aligned legend {
float: inline-start;
}
.aligned legend,
.aligned label {
display: block;
padding: 4px 10px 0 0;
@@ -149,7 +133,7 @@ form .aligned ul {
}
form .aligned div.radiolist {
display: block;
display: inline-block;
margin: 0;
padding: 0;
}
@@ -217,8 +201,7 @@ fieldset .fieldBox {
/* WIDE FIELDSETS */
.wide label,
.wide legend {
.wide label {
width: 200px;
}
@@ -355,7 +338,7 @@ body.popup .submit-row {
width: 48em;
}
.app-flatpages.model-flatpage #id_content {
.flatpages-flatpage #id_content {
height: 40.2em;
}
@@ -430,12 +413,9 @@ body.popup .submit-row {
border: none;
}
.inline-related.tabular div.wrapper {
overflow-x: auto;
}
.inline-related.tabular fieldset.module table {
width: 100%;
overflow-x: scroll;
}
.last-related fieldset {
@@ -449,6 +429,7 @@ body.popup .submit-row {
.inline-group .tabular tr td.original {
padding: 2px 0 0 0;
width: 0;
_position: relative;
}
.inline-group .tabular th.original {
@@ -456,19 +437,16 @@ body.popup .submit-row {
padding: 0;
}
.inline-group .tabular td {
font-size: 1rem;
}
.inline-group .tabular td.original p {
position: absolute;
left: 0;
height: 1.2em;
height: 1.1em;
padding: 2px 9px;
overflow: hidden;
font-size: 0.875rem;
font-size: 0.5625rem;
font-weight: bold;
color: var(--body-quiet-color);
_width: 700px;
}
.inline-group div.add-row,