.django-ckeditor-widget, .cke_editor_id_content {
width: 100% !important;
max-width: 821px !important;
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
tables = pd.read_html("http://www.ioc-sealevelmonitoring.org/bgraph.php?code=valp2&output=tab&period=0.5") | |
print(tables[0]) # devuelve la primera tabla que encuentra, bien organizada en un dataframe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var send = document.getElementById("send"); | |
send.addEventListener("click", function(){ | |
var content = encodeURIComponent(document.getElementById("content").value); // & | |
if (content.length > 0){ | |
const url = "{% url 'messenger:add' thread.pk %}" + "?content="+content; | |
fetch(url, {'credentials':'include'}).then(response => response.json()).then(function(data){ | |
// Si el mensaje se ha creado correctamente... | |
if (data.created) { | |
// Aquí iría el código de creación del mensaje dinámicamente | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Menú de paginación --> | |
{% if is_paginated %} | |
<nav aria-label="Page navigation"> | |
<ul class="pagination justify-content-center"> | |
{% if page_obj.has_previous %} | |
<li class="page-item "> | |
<a class="page-link" href="?page={{ page_obj.previous_page_number }}">«</a> | |
</li> | |
{% else %} | |
<li class="page-item disabled"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'core/base.html' %} | |
{% load static %} | |
{% block title %}Perfil{% endblock %} | |
{% block content %} | |
<style>.errorlist{color:red;} label{display:none}</style> | |
<main role="main"> | |
<div class="container"> | |
<div class="row mt-3"> | |
<div class="col-md-9 mx-auto mb-5"> | |
<form action="" method="post" enctype="multipart/form-data">{% csrf_token %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'core/base.html' %} | |
{% load static %} | |
{% block title %}Restablecimiento de contraseña completado{% endblock %} | |
{% block content %} | |
<main role="main"> | |
<div class="container"> | |
<div class="row mt-3"> | |
<div class="col-md-9 mx-auto mb-5"> | |
<h3 class="mb-4">Restablecimiento de contraseña completado </h3> | |
<p>Su contraseña ha sido establecida. Ahora puede seguir adelante e iniciar sesión.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'core/base.html' %} | |
{% load static %} | |
{% block title %}Escriba la nueva contraseña{% endblock %} | |
{% block content %} | |
<style>.errorlist{color:red;}</style> | |
<main role="main"> | |
<div class="container"> | |
<div class="row mt-3"> | |
<div class="col-md-9 mx-auto mb-5"> | |
{% if validlink %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'core/base.html' %} | |
{% load static %} | |
{% block title %}Restablecimiento de contraseña enviado{% endblock %} | |
{% block content %} | |
<main role="main"> | |
<div class="container"> | |
<div class="row mt-3"> | |
<div class="col-md-9 mx-auto mb-5"> | |
<h3 class="mb-4">Restablecimiento de contraseña enviado</h3> | |
<p>Le hemos enviado por email las instrucciones para restablecer la contraseña, si es que existe una cuenta con la dirección electrónica que indicó. Debería recibirlas en breve.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'core/base.html' %} | |
{% load static %} | |
{% block title %}Restablecer contraseña{% endblock %} | |
{% block content %} | |
<style>.errorlist{color:red;}</style> | |
<main role="main"> | |
<div class="container"> | |
<div class="row mt-3"> | |
<div class="col-md-9 mx-auto mb-5"> | |
<form action="" method="post">{% csrf_token %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'core/base.html' %} | |
{% load static %} | |
{% block title %}Iniciar sesión{% endblock %} | |
{% block content %} | |
<style>.errorlist{color:red;}</style> | |
<main role="main"> | |
<div class="container"> | |
<div class="row mt-3"> | |
<div class="col-md-9 mx-auto mb-5"> | |
<form action="" method="post">{% csrf_token %} |