.django-ckeditor-widget, .cke_editor_id_content {
width: 100% !important;
max-width: 821px !important;
}
This file contains 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 %} |
This file contains 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 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
class Producto: | |
def __init__(self, nombre, descripcion, precio): | |
self.nombre = nombre | |
self.descripcion = descripcion | |
self.precio = precio | |
class Subproducto(Producto): | |
def __init__(self, nombre, descripcion, precio, marca): | |
super().__init__(nombre, descripcion, precio) | |
self.marca = marca |
This file contains 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
def division(numero1, numero2): | |
resultado = numero1 / numero_2 | |
return resultado | |
numero1 = input("Ingresa un número: " | |
numero2 = input("Ingresa otro número: ") | |
resultado = dividir_dos_numeros(numero1, numero2) | |
print("El resultado es: ", resultado) |
This file contains 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 sys | |
import os | |
def resource_path(relative_path): | |
""" Get absolute path to resource, works for dev and for PyInstaller """ | |
try: | |
# PyInstaller creates a temp folder and stores path in _MEIPASS | |
base_path = sys._MEIPASS | |
except Exception: | |
base_path = os.path.abspath(".") |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
python -m ipykernel install --user |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.