sudo apt-get install rabbitmq-server
pip install celery
Login in heroku:
heroku login
Add Procfile file:
web: gunicorn project.wsgi --log-file -; python manage.py collectstatic --noinput
Add cat runtime.txt:
for link in ENLACE; do wget -m --recursive --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains domains.com --force-html --base $link --no-parent $link; done |
deb http://ftp.us.debian.org/debian/ stretch main contrib non-free | |
deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free | |
# deb http://ftp.es.debian.org/debian/ sid main contrib non-free | |
# deb-src http://ftp.es.debian.org/debian/ sid main contrib non-free | |
deb http://ftp.us.debian.org/debian/ stretch-backports main contrib non-free | |
deb-src http://ftp.us.debian.org/debian/ stretch-backports main contrib non-free | |
deb http://security.debian.org/ stretch/updates main contrib non-free |
{% if messages %} | |
{% for message in messages %} | |
<div class="alert {% if message.tags %} alert-{{ message.tags }}{% endif %}">{{ message|safe }}</div> | |
{% endfor %} | |
{% endif %} | |
{% if form.errors %} | |
<div class="alert alert-error"> | |
<h4>Please fix the following errors</h4> | |
<ul> |
DEBUG = True | |
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': True, | |
'formatters': { | |
'standard': { | |
'format': "%(sql)s", | |
}, | |
}, | |
'handlers': { |
import sendgrid | |
from datetime import datetime | |
SENDGRID_API_KEY = "S3NGR1D_AP1_K3Y" | |
TEMPLATE_ID = 't3mpl4t3_1d' | |
sg = sendgrid.SendGridClient(SENDGRID_API_KEY) | |
date_time = datetime.now() | |
sender = "Axel Díaz <correo@example>" | |
subject = "[AXELIO] Test Sendgrid [{}]".format(date_time) |
LIMITE = int(input("Ingrese el límite de la evaluación: ")) | |
result = [] | |
resultado = 0 | |
stop = False | |
archivo = open('resultados.txt', 'w') | |
for q in range(0, LIMITE): | |
# Si no es par | |
if not (q % 2 == 0) and not (q % 3 == 0): |
sudo aptitude install gource | |
cd DIRECTORY_GIT_PROJECT | |
gource \ | |
-s .06 \ | |
-1280x720 \ | |
--auto-skip-seconds .1 \ | |
--multi-sampling \ | |
--stop-at-end \ | |
--key \ |