I just tried to set up a cronjob with plesk and I got this error:

from: can't read /var/mail/django.core.management
/var/www/vhosts/mydomain.at/www/scripts/cronjobs/mail_editors.py: line
4: import: command not found
/var/www/vhosts/mydomain.at/www/scripts/cronjobs/mail_editors.py: line
5: syntax error near unexpected token `settings'
/var/www/vhosts/mydomain.at/www/scripts/cronjobs/mail_editors.py: line
5: `setup_environ(settings)'

Here´s the test-script:

# coding: utf-8

from django.core.management import setup_environ
import settings
setup_environ(settings)

def mail_movies():
    from django.core.mail import send_mail

    subject = u"test"
    message = u"test"
    send_mail(subject, message, "[EMAIL PROTECTED]",
['[EMAIL PROTECTED]'],)


patrick


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to