Skip to content

Commit

Permalink
renamed django_settings to settings, django_settings was not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwatts committed Mar 1, 2010
1 parent 2b5bb39 commit c7ebcf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions carrot/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ def get_django_conninfo(settings=None):
compat_setting, setting)))

if "hostname" not in ci:
if hasattr(django_settings, "AMQP_SERVER"):
ci["hostname"] = django_settings.AMQP_SERVER
if hasattr(settings, "AMQP_SERVER"):
ci["hostname"] = settings.AMQP_SERVER
warnings.warn(DeprecationWarning(
"AMQP_SERVER has been renamed to BROKER_HOST and is"
"scheduled for removal in version 1.0."))
Expand Down

0 comments on commit c7ebcf9

Please sign in to comment.