@@ -1,5 +1,5 @@
export REGISTRO=harbor.rancher.lab:30002\/siemensrad
-export IMG_VERSION = alpine-31
+export IMG_VERSION = alpine-35
export NAMESPACE = trgenerator
# limpia todo
@@ -83,7 +83,7 @@ WSGI_APPLICATION = 'doc_generator.wsgi.application'
# Database
# https://docs.djangoproject.com/en/5.2/ref/settings/#databases
-if DEBUG:
+if DEBUG == "True":
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
@@ -41,6 +41,19 @@
p {
text-align: justify;
}
+
+ /* --- ADD THIS BLOCK --- */
+ /* Forces WeasyPrint to respect the width/height set by TinyMCE */
+ img[width] {
+ width: attr(width px);
+ }
+ img[height] {
+ height: attr(height px);
+ img {
+ max-width: 100%;
+ height: auto;
</style>
</head>
<body>