Browse Source

Preparación para hacer tests de la funcionalidad de la política de privacidad

politica
Celestino Rey 7 months ago
parent
commit
43d17e3e6b
5 changed files with 16 additions and 6 deletions
  1. +1
    -1
      JugarAlPadel/K8S/Makefile
  2. +1
    -0
      JugarAlPadel/K8S/env-prod-configmap.yaml
  3. +5
    -0
      JugarAlPadel/K8S/jugaralpadel-deployment.yaml
  4. +6
    -2
      JugarAlPadel/gestion_reservas/gestion_reservas/settings.py
  5. +3
    -3
      JugarAlPadel/gestion_reservas/templates/politica_privacidad.html

+ 1
- 1
JugarAlPadel/K8S/Makefile View File

@ -1,7 +1,7 @@
export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':')
export REGISTRY=registry.reymota.es
export IMG_VERSION = 0.70.57
export IMG_VERSION = 0.70.60
export IMG_NGINX_VERSION = 2.3
# limpia todo


+ 1
- 0
JugarAlPadel/K8S/env-prod-configmap.yaml View File

@ -1,6 +1,7 @@
apiVersion: v1
data:
DEBUG: "False"
TESTING: "True"
APP_VERSION: 12.0.0
DATABASE: postgres
kind: ConfigMap


+ 5
- 0
JugarAlPadel/K8S/jugaralpadel-deployment.yaml View File

@ -51,6 +51,11 @@ spec:
configMapKeyRef:
key: DEBUG
name: env-prod
- name: TESTING
valueFrom:
configMapKeyRef:
key: TESTING
name: env-prod
ports:
- containerPort: 8000
protocol: TCP


+ 6
- 2
JugarAlPadel/gestion_reservas/gestion_reservas/settings.py View File

@ -30,9 +30,10 @@ SECRET_KEY = 'hey'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ["DEBUG"] == 'True'
TESTING = os.environ["TESTING"] == 'True'
ALLOWED_HOSTS = [".ocp-cluster.reymota.lab", "jugaralpadel.rancher.reymota.lab", "jugaralpadel.es"]
CSRF_TRUSTED_ORIGINS = ["https://*.ocp-cluster.reymota.lab", "http://jugaralpadel.rancher.reymota.lab", "https://jugaralpadel.rancher.reymota.lab", "https://jugaralpadel.es"]
ALLOWED_HOSTS = [".ocp-cluster.reymota.lab", "jugaralpadel.rancher.reymota.lab", "jugaralpadel.es", ".reymota.es"]
CSRF_TRUSTED_ORIGINS = ["https://*.ocp-cluster.reymota.lab", "http://jugaralpadel.rancher.reymota.lab", "https://jugaralpadel.rancher.reymota.lab", "https://jugaralpadel.es", "http://*.reymota.es"]
# Application definition
@ -164,6 +165,9 @@ else:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
SITE_URL = "http://jugaralpadel.es"
if TESTING is True:
SITE_URL = "http://jalp.reymota.es"
# EMAIL_HOST = 'smtp.gmail.com'
# EMAIL_HOST_USER = 'jugaralpadelentreamigos@gmail.com'
# EMAIL_HOST_PASSWORD = 'btjnlcliimxcnmhi' # Es mejor usar una contraseña de aplicación de Google


+ 3
- 3
JugarAlPadel/gestion_reservas/templates/politica_privacidad.html View File

@ -6,7 +6,7 @@
<p>Última actualización: {{ fecha_actual }}</p>
<h3>1. Responsable del tratamiento</h3>
<p>El responsable del tratamiento de los datos personales es <strong>[Nombre de la Organización]</strong>, con dirección en <strong>[Dirección]</strong> y correo electrónico <strong>[Email de contacto]</strong>.</p>
<p>El responsable del tratamiento de los datos personales es <strong>Raúl Fernández Suárez</strong>, con dirección en <strong>Calle Ravena, 7 - 28032 Madrid</strong> y correo electrónico <strong>admin@jugaralpadel.es</strong>.</p>
<h3>2. Datos que recopilamos</h3>
<p>Recopilamos los siguientes datos personales cuando te registras en nuestra plataforma y reservas eventos:</p>
@ -45,13 +45,13 @@
<li>Solicitar la portabilidad de tus datos</li>
</ul>
<p>Para ejercer estos derechos, contacta con nosotros en <strong>[Email de contacto]</strong>.</p>
<p>Para ejercer estos derechos, contacta con nosotros en <strong>admin@jugaralpadel.es</strong>.</p>
<h3>7. Seguridad de los datos</h3>
<p>Aplicamos medidas de seguridad para proteger los datos contra accesos no autorizados, pérdidas o alteraciones.</p>
<h3>8. Contacto</h3>
<p>Si tienes preguntas sobre esta política, puedes contactarnos en <strong>[Email de contacto]</strong>.</p>
<p>Si tienes preguntas sobre esta política, puedes contactarnos en <strong>admin@jugaralpadel.es</strong>.</p>
</div>
{% endblock %}

Loading…
Cancel
Save