Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global name 'django_settings' is not defined #25

Closed
andrewwatts opened this issue Mar 1, 2010 · 1 comment
Closed

global name 'django_settings' is not defined #25

andrewwatts opened this issue Mar 1, 2010 · 1 comment

Comments

@andrewwatts
Copy link
Contributor

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@c7ebcf9

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
Copy link
Owner

ask commented May 30, 2010

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants