0
[email protected]:~/django/sp$ python manage.py shell
Python 2.5.2 (r252:60911, Jan 20 2010, 21:48:48)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import mailer
>>> mailer.get_version()
'0.2a1.dev3'
>>> mailer.__file__
'/usr/lib/python2.5/site-packages/django_mailer-0.2a1.dev3-py2.5.egg/mailer/__init__.pyc'
>>> from django.conf import settings
>>> 'mailer' in settings.INSTALLED_APPS
True
>>>
[email protected]:~/django/sp$ python manage.py send_mail
Unknown command: 'send_mail'
Type 'manage.py help' for usage.
什麼問題?Django - python manage.py send_mail - 未知命令:'send_mail'
當你做./manage.py幫助時send_mail是否出現在列表中? – 2011-02-11 11:06:22