Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Küppers, Dorothee
oos_2020_todo
Commits
e5c12866
Commit
e5c12866
authored
Jul 06, 2020
by
dorothee.kueppers
Browse files
cron changed
parent
9496d2f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
oos_2020_todo/settings.py
View file @
e5c12866
...
...
@@ -141,7 +141,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATICFILES_STORAGE
=
'whitenoise.storage.CompressedManifestStaticFilesStorage'
CRONJOBS
=
[
(
'
*/1 *
* * *'
,
'todo.cron.email_todays_todos'
)
(
'
0 8
* * *'
,
'todo.cron.email_todays_todos'
)
]
...
...
todo/cron.py
View file @
e5c12866
...
...
@@ -3,9 +3,6 @@ from django.core.mail import send_mail
def
email_todays_todos
():
print
(
'hi'
)
f
=
open
(
'/Users/dorothee.kuepers/Desktop/hi.txt'
,
'w'
)
f
.
close
()
send_mail
(
'Hello from Feierabend'
,
'Mail gesendet'
,
'feierabend-todo@gmx.de'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment