ask / carrot

AMQP Messaging Framework for Python (discontinued; Use Kombu instead)
http://ask.github.com/carrot/
BSD 3-Clause "New" or "Revised" License
197 stars 34 forks source link

global name 'django_settings' is not defined #25

Closed andrewwatts closed 14 years ago

andrewwatts commented 14 years ago

Hello, I've started testing celery, carrot and ghettoq using a database backend and when starting celeryd, receive the error below:

I've also pushed a fix to andrewwatts/carrot@c7ebcf94f41fdfb7ac3bee3960d2d42c9f97b894

Traceback (most recent call last):
  File "./manage.py", line 18, in <module>
    execute_manager(settings)
  File "/path/to/virtualenv/lib/python2.6/site-packages/django/core/management/__init__.py", line 362, in execute_manager
    utility.execute()
  File "/path/to/virtualenv/lib/python2.6/site-packages/django/core/management/__init__.py", line 303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/path/to/virtualenv/lib/python2.6/site-packages/django/core/management/base.py", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/path/to/virtualenv/lib/python2.6/site-packages/django/core/management/base.py", line 222, in execute
    output = self.handle(*args, **options)
  File "/path/to/virtualenv/lib/python2.6/site-packages/celery/management/commands/celeryd.py", line 18, in handle
    run_worker(**options)
  File "/path/to/virtualenv/lib/python2.6/site-packages/celery/bin/celeryd.py", line 153, in run_worker
    "conninfo": info.format_broker_info(),
  File "/path/to/virtualenv/lib/python2.6/site-packages/celery/utils/info.py", line 45, in format_broker_info
    broker_connection = establish_connection()
  File "/path/to/virtualenv/lib/python2.6/site-packages/celery/messaging.py", line 122, in establish_connection
    return DjangoBrokerConnection(connect_timeout=connect_timeout)
  File "/path/to/virtualenv/src/carrot/carrot/connection.py", line 227, in __init__
    kwargs = dict(get_django_conninfo(settings), **kwargs)
  File "/path/to/virtualenv/src/carrot/carrot/connection.py", line 190, in get_django_conninfo
    if hasattr(django_settings, "AMQP_SERVER"):
NameError: global name 'django_settings' is not defined
ask commented 14 years ago

This was merged quite a while ago. Forgot to close the issue.