You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Añadir una nueva sección (aplicación) al proyecto
2
2
3
-
Normally, when a new app (section) is needed in a Django project, it can be created as follows:
3
+
Normalmente, cuando se necesita una nueva aplicación (sección) en un projecto de Django, se puede crear así:
4
4
5
5
```console
6
6
$ ./manage.py startapp <app>
7
7
```
8
8
9
-
Based on the design of our project, some further steps must be taken in order to get the app well visualized:
9
+
Basados en el diseño de nuestro proyecto, se deben llevar a cabo algunos pasos adicionales para lograr visualizar la aplicación correctamente:
10
10
11
-
1.Add`<app>`to the `APPS`constant on[gulp/config.js](gulp/config.js).
12
-
2.Create the file`<app>/static/<app>/css/main.scss`with, at least, the following content: `@import "commons/static/commons/css/base";`
13
-
3.Create the base template file at `<app>/templates/<app>/base.html`which extends from [commons/templates/base.html](commons/templates/base.html)as`base.html`and links to the stylesheet `<app>/custom.min.css` (_this file is generated by gulp_)
14
-
4.In order to create the corresponding item on header menu, add the app entry at[commons/templates/header.html](commons/templates/header.html).
11
+
1.Añadir`<app>`a la constante `APPS`en[gulp/config.js](gulp/config.js).
12
+
2.Crear el archivo`<app>/static/<app>/css/main.scss`con, al menos, el siguiente contenido: `@import "commons/static/commons/css/base";`
13
+
3.Crear el archivo de la plantilla base en `<app>/templates/<app>/base.html`el cual se extiende desde [commons/templates/base.html](commons/templates/base.html)como`base.html`y se enlaza a la hoja de estilos `<app>/custom.min.css` (_este archivo es generado por gulp_)
14
+
4.Para poder crear el elemento correspondiente en el menú de la cabecera, añadir la entrada a la aplicación en[commons/templates/header.html](commons/templates/header.html).
0 commit comments