fin vid32

jp.dev 2020-11-19 00:47:48 -03:00
parent 026fbf8219
commit 5583c82160

@ -22,6 +22,7 @@ Compatible con todos los navegadores.
[demo](https://www.pildorasinformaticas.es/archivos/django/video29.zip) [demo](https://www.pildorasinformaticas.es/archivos/django/video29.zip)
/Proyecto/App/**estatic/App/** /Proyecto/App/**estatic/App/**
``` ```
├── 📂️ static ├── 📂️ static
│ └── 📂️ ProyectoWepApp │ └── 📂️ ProyectoWepApp
@ -36,6 +37,7 @@ Compatible con todos los navegadores.
│ └── 📁️ jquery │ └── 📁️ jquery
``` ```
modificar Project/App/templates/App/**home.html** modificar Project/App/templates/App/**home.html**
@ -64,11 +66,11 @@ Cargar contenidos
``` ```
Estilo aplicado, *vista escritorio* Estilo aplicado, ***vista escritorio***
![sitio con estilo aplicado](https://gitea.kickto.net/jp.av.dev/intro_Django/raw/branch/master/ProyectoWeb/wikimg/home_style.png) ![sitio con estilo aplicado](https://gitea.kickto.net/jp.av.dev/intro_Django/raw/branch/master/ProyectoWeb/wikimg/home_style.png)
*Vista en android* ***Vista en android***
![responsive](https://gitea.kickto.net/jp.av.dev/intro_Django/raw/branch/master/ProyectoWeb/wikimg/responsive.png) ![responsive](https://gitea.kickto.net/jp.av.dev/intro_Django/raw/branch/master/ProyectoWeb/wikimg/responsive.png)
@ -185,12 +187,24 @@ un lenguaje de POO y una base de datos relacional como motor de persistencia.
def __str__(self): def __str__(self):
return self.titulo return self.titulo
``` ```
Django-docs: [Model meta options](https://docs.djangoproject.com/en/3.1/ref/models/options/#model-meta-options) - - [verbose name](https://docs.djangoproject.com/en/3.1/ref/models/options/#verbose-name) - - []() ***Django-docs:*** [Model meta options](https://docs.djangoproject.com/en/3.1/ref/models/options/#model-meta-options) - - [verbose_name](https://docs.djangoproject.com/en/3.1/ref/models/options/#verbose-name) - - [ImageField](https://docs.djangoproject.com/en/3.1/ref/models/fields/#imagefield) - - [db.models.fields](https://docs.djangoproject.com/en/3.1/ref/models/fields/#module-django.db.models.fields)
ImageField instances are created in your database as varchar columns with a default max length of 100 characters. As with other fields, you can change the maximum length using the max_length argument. ```
ImageField instances are created in your database as varchar columns with a default max length
of 100 characters.
As with other fields, you can change the maximum length using the max_length argument.
```
#### Para usar Imagenes
🔸️`pip3 install Pillow`
#### Crear migraciones :
🔸️`python3 admin.py makemigrations` 🔸️`python3 admin.py makemigrations`
#### Migrar :
🔸️`python3 admin.py migrate` 🔸️`python3 admin.py migrate`