fin vid32
parent
026fbf8219
commit
5583c82160
@ -22,6 +22,7 @@ Compatible con todos los navegadores.
|
||||
|
||||
[demo](https://www.pildorasinformaticas.es/archivos/django/video29.zip)
|
||||
/Proyecto/App/**estatic/App/**
|
||||
|
||||
```
|
||||
├── 📂️ static
|
||||
│ └── 📂️ ProyectoWepApp
|
||||
@ -36,6 +37,7 @@ Compatible con todos los navegadores.
|
||||
│ └── 📁️ jquery
|
||||
```
|
||||
|
||||
|
||||
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)
|
||||
|
||||
|
||||
*Vista en android*
|
||||
***Vista en android***
|
||||
![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):
|
||||
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`
|
||||
|
||||
#### Migrar :
|
||||
🔸️`python3 admin.py migrate`
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user