Skip to content

Commit 99c93da

Browse files
committed
Cambios en producción
1 parent 9100520 commit 99c93da

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

apps/commons/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
{% block styles %}
1616
<link rel="stylesheet" href="{% static 'commons/css/bulma.min.css' %}">
17-
{% endblock styles %}
17+
{% endblock styles %}
1818

1919
</head>
2020
<body class="{% block body_class %}{% endblock %} has-navbar-fixed-top">

export_database.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#/bin/bash
22

3-
pg_dump --username pythoncanarias_user --dbname pythoncanarias_web --password > pythoncanarias.db
3+
# pg_dump --username pythoncanarias_user --dbname pythoncanarias_web --password > pythoncanarias.db
44

55
./manage.py dumpdata about --indent 4 > exported/about.json
66
./manage.py dumpdata certificates --indent 4 > exported/certificates.json
@@ -10,7 +10,7 @@ pg_dump --username pythoncanarias_user --dbname pythoncanarias_web --password >
1010
./manage.py dumpdata jobs --indent 4 > exported/jobs.json
1111
./manage.py dumpdata learn --indent 4 > exported/learn.json
1212
./manage.py dumpdata locations --indent 4 > exported/locations.json
13-
./manage.py dumpdata members --indent 4 > exported/members.json
13+
./manage.py dumpdata members.member members.membership --indent 4 > exported/members.json
1414
./manage.py dumpdata notices --indent 4 > exported/notices.json
1515
./manage.py dumpdata organizations --indent 4 > exported/organizations.json
1616
./manage.py dumpdata quotes --indent 4 > exported/quotes.json

justfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,20 @@ info:
5454
python3 -V
5555
python3 -c "import django; print(django.__version__)"
5656
uptime
57+
58+
# Acceso al DBShell
59+
dbshell *args='default':
60+
python3 manage.py dbshell --database {{ args }}
61+
62+
# Show migrations
63+
showmigrations $APP='' *args='':
64+
python3 ./manage.py showmigrations {{APP}} {{ args }}
65+
66+
alias sm := showmigrations
67+
68+
# Make migrations
69+
makemigrations $APP='' *args='':
70+
python3 ./manage.py makemigrations {{APP}} {{ args }}
71+
72+
alias mm := makemigrations
73+

0 commit comments

Comments
 (0)