如何在没有 PINAX 的情况下使用 django 邮件程序
我想在没有 PINAX 的情况下使用 django-mailer。当我运行 ./manager.py send_mail
它打印:
Unknown command: 'send_mail' Type 'manage.py help' for usage.
我该如何解决这个问题?
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31) [GCC 4.2.1 (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from django.conf import settings >>> 'mailer' in settings.INSTALLED_APPS True >>> $./manage.py send_mail Unknown command: 'send_mail' Type 'manage.py help' for usage.
我使用 easy_install django-mailer 来安装邮件程序,以及 django 版本 是
VERSION = (1, 1, 1, 'final', 0)
邮件程序版本是0.1.0
I want to use django-mailer without PINAX. When I run ./manager.py send_mail
it prints:
Unknown command: 'send_mail' Type 'manage.py help' for usage.
How do I fix this?
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31) [GCC 4.2.1 (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from django.conf import settings >>> 'mailer' in settings.INSTALLED_APPS True >>> $./manage.py send_mail Unknown command: 'send_mail' Type 'manage.py help' for usage.
and I used easy_install django-mailer to install the mailer, and the django version
is
VERSION = (1, 1, 1, 'final', 0)
and mailer version is 0.1.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有几件事需要仔细检查:
此时,您应该在可用的 manage.py 子命令列表中看到 send_mail。
之后,您还需要确保您正在通过 cron 作业运行
./manage.py send_mail
。在开发过程中无需实际设置这两个 cronjobs,只需通过管理员查找您的消息即可。
django-mailer 模块有使用说明,但这应该可以帮助您启动并运行。
A few things to double check:
At this point you should see send_mail in the list of available manage.py subcommands.
After than you will also want to make sure that you are running
./manage.py send_mail
via a cron job.There is no need to actually set these two cronjobs up during development, just look for your messages via the admin.
The django-mailer module has usage instructions but this should get you up and running.
你不能直接从 django-mailer 下载并单独安装吗?
Can't you just download it from django-mailer and install it separately?