emencia / emencia-django-newsletter

An app for sending newsletter by email to a contact list.
189 stars 72 forks source link

send_newsletter command not available #18

Closed aledr closed 13 years ago

aledr commented 13 years ago

I followed install instructions but send_newsletter command is not available.

Thanks.

python manage.py send_newsletter Unknown command: 'send_newsletter' Type 'manage.py help' for usage.

lucalenardi commented 13 years ago

Have you checked your PAYTHONPATH? Are you sure that edn is correctly installed? Can you post a little more information about your environment (versions, software stack etc.)?

aledr commented 13 years ago

openSUSE 11.3 x86_64:

python-2.6.5 python-django-1.2.4 python-emencia_django_newsletter-0.1

https://gist.github.com/756420

Thanks

Fantomas42 commented 13 years ago

Hi, if I remember well I have already experienced this issue in a special case.

Try to patch your django code with that : https://gist.github.com/757080

The file to patch is : django/core/management/init.py

Tell me if it works.

aledr commented 13 years ago

Yes, It worked...

Thanks.

marconius commented 13 years ago

I had this same issue and originally fixed it with the proposed patch, but then I realized that I had installed edn with :

$ pip install emencia.django.newsletter

instead of the command written in the installation instructions :

$ pip install -e git://github.com/Fantomas42/emencia-django-newsletter.git#egg=emencia.django.newsletter

I uninstalled edn and reinstalled it with the prescribed pip command, and now send_newsletter is available and I don't need to patch Django

craigkerstiens commented 12 years ago

There still seems to be something off with the namespacing. The below actually uses a checkout and a symlink when installing. Per pip this is not necessarily the ideal to install:

pip install -e git://github.com/Fantomas42/emencia-django-newsletter.git#egg=emencia.django.newsletter

Instead if installing from git you should be able to:

pip install git+git://github.com/Fantomas42/emencia-django-newsletter.git#egg=emencia.django.newsletter

This however does not work as does the repo from PyPi. These would be the two more correct ways to install, yet it prevents functionality.