File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
apps/certificates/management/commands Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 22
33from django .core .management .base import BaseCommand
44
5- from certificates .utils import create_certificate
6- from tickets .models import Ticket
5+ from apps . certificates .utils import create_certificate
6+ from apps . tickets .models import Ticket
77
88
99class Command (BaseCommand ):
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ npm install --no-save
88gulp
99python manage.py migrate
1010python manage.py collectstatic --noinput --clear
11- supervisorctl restart web
1211supervisorctl restart rq
12+ supervisorctl restart web
Original file line number Diff line number Diff line change 22check :
33 python manage.py check
44 flake8 --count **/ *.py
5- vulture .
5+ # vulture . --exclude node_modules/
66
77
88# Borrar ficheros temporales y espurios
@@ -42,3 +42,15 @@ static:
4242# [Re]crear el fichero ctags
4343tags :
444445+
46+ # Ejecutar los test pasados como paræmetro (Empezará por el último que haya fallado)
47+ test * args = ' .':
48+ python3 -m pytest --failed-first -vv -x --log-cli-level=INFO --doctest-modules -m " not slow" {{ args }}
49+
50+ # Muestra información del Harware / S.O. / Python / Django
51+ info :
52+ @ echo " This is an {{ arch ()}} machine"
53+ @ echo " OS: {{ os ()}} / {{ os_family ()}} "
54+ python3 -V
55+ python3 -c " import django; print(django.__version__)"
56+ uptime
You can’t perform that action at this time.
0 commit comments