Commit fa215c65 authored by dorothee.kueppers's avatar dorothee.kueppers
Browse files

runtime.txt for heroku

parent f86e3943
......@@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'django_crontab',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
......@@ -40,7 +41,6 @@ INSTALLED_APPS = [
'todo',
'bootstrap4',
'recurrence',
'django_crontab',
]
MIDDLEWARE = [
......@@ -127,11 +127,13 @@ RECURRENCE_USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# STATICFILES_DIRS = [
# os.path.join(BASE_DIR, "static"),
# # '/var/www/static/',
# ]
CRONJOBS = [
('0 */1 * * * *', 'todo.cron.email_todays_todos')
]
\ No newline at end of file
('*/1 * * * *', 'todo.cron.email_todays_todos')
]
EMAIL_HOST = 'mail.gmx.net'
EMAIL_PORT: 587
EMAIL_HOST_USER: 'feierabend-todo@gmx.de'
EMAIL_HOST_PASSWORD: 'oos_2020_todo'
EMAIL_USE_TLS = True
alabaster==0.7.12
amqp==1.4.9
anyjson==0.3.3
asgiref==3.2.9
Babel==2.8.0
beautifulsoup4==4.9.1
billiard==3.3.0.23
celery==3.1.26.post2
certifi==2020.4.5.2
chardet==3.0.4
Django==3.0.7
django-bootstrap4==2.1.0
django-crontab==0.7.1
django-post-office==3.4.1
django-recurrence==1.10.3
docutils==0.16
idna==2.9
imagesize==1.2.0
importlib-metadata==1.6.1
Jinja2==2.11.2
jsonfield==3.1.0
kombu==3.0.37
MarkupSafe==1.1.1
packaging==20.4
Pygments==2.6.1
pyparsing==2.4.7
python-dateutil==2.8.1
pytz==2020.1
requests==2.24.0
six==1.15.0
......@@ -31,5 +41,3 @@ sphinxcontrib-serializinghtml==1.1.4
sqlparse==0.3.1
urllib3==1.25.9
zipp==3.1.0
django-recurrence~=1.10.3
\ No newline at end of file
......@@ -54,4 +54,57 @@ div.form-control.recurrence-widget {
.todo-soon, .todo-someday {
background: darkseagreen;
color: floralwhite;
}
.warning {
color: indianred;
}
/*show todos*/
.list-group-item.select-todo-grid-show {
display: grid;
grid-template-columns: 20px auto auto 50px 50px;
grid-template-rows: auto auto;
}
.select-todo-grid-show .todo-check {
grid-column-start: 1;
grid-row: 1 / 2;
align-self: center;
}
.select-todo-grid-show .todo-text {
grid-column-start: 2;
align-self: center;
}
.select-todo-grid-show .todo-due {
grid-row-start: 2;
grid-column-start: 3;
font-size: small;
justify-self: end;
width: fit-content;
}
.select-todo-grid-show .todo-duration {
grid-column-start: 3;
justify-self: end;
width: fit-content;
}
.select-todo-grid-show .todo-edit {
grid-column-start: 4;
justify-self: end;
width: fit-content;
}
.select-todo-grid-show .todo-delete {
grid-column-start: 5;
justify-self: end;
width: fit-content;
}
#show-todos #accordion {
width: -webkit-fill-available;
}
\ No newline at end of file
......@@ -34,9 +34,9 @@
<li class="nav-item active">
<a class="nav-link" href="{% url 'landing_page' %}">Start<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="{% url 'selection_page' %}">Aufgabenliste<span class="sr-only">(current)</span></a>
</li>
{# <li class="nav-item active">#}
{# <a class="nav-link" href="{% url 'selection_page' %}">Aufgabenliste<span class="sr-only">(current)</span></a>#}
{# </li>#}
<li class="nav-item active">
<a class="nav-link" href="{% url 'add_todo' %}">neue Aufgabe <span class="sr-only">(current)</span></a>
</li>
......
from post_office import mail
from django.core.mail import send_mail
def email_todays_todos():
print('Hello world!')
return True
print('hi')
f = open('/Users/dorothee.kuepers/Desktop/hi.txt', 'w')
f.close()
send_mail('Hello from Feierabend',
'Mail gesendet',
'feierabend-todo@gmx.de',
['DoroKueppers@web.de'],
fail_silently=False)
import logging
from django.contrib import messages
from django.core.mail import send_mail
from django.db.models import Max, Model
from django.http import HttpResponseRedirect
from django.shortcuts import render, redirect
from django.urls import reverse_lazy
from django.utils import timezone
from oos_2020_todo import settings
from todo.forms import *
from todo.models import *
......@@ -32,7 +34,11 @@ def login_page(request):
def get_landing_page(request):
logger.info("Hallo")
# send_mail('Hello from Feierabend',
# 'Mail gesendet',
# settings.EMAIL_HOST_USER,
# ['DoroKueppers@web.de'],
# fail_silently=False)
try:
selection = Selection.objects.filter(active=True).latest('endtime')
except Model.DoesNotExist:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment