← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~andreserl/maas/maas_missing_import into lp:maas

 

Andres Rodriguez has proposed merging lp:~andreserl/maas/maas_missing_import into lp:maas.

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~andreserl/maas/maas_missing_import/+merge/97487

This adds a missing import on urlparse, otherwise it will fail cause it wont find urljoin:

Traceback (most recent call last):
  File "/usr/bin/django-admin", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 429, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 252, in fetch_command
    app_name = get_commands()[subcommand]
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 101, in get_commands
    apps = settings.INSTALLED_APPS
  File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
    self._setup()
  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 87, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/usr/share/maas/maas/settings.py", line 68, in <module>
    DEFAULT_MAAS_URL = urljoin(DEFAULT_MAAS_URL, FORCE_SCRIPT_NAME)
NameError: name 'urljoin' is not defined
-- 
https://code.launchpad.net/~andreserl/maas/maas_missing_import/+merge/97487
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~andreserl/maas/maas_missing_import into lp:maas.
=== modified file 'src/maas/settings.py'
--- src/maas/settings.py	2012-03-14 15:09:16 +0000
+++ src/maas/settings.py	2012-03-14 18:42:23 +0000
@@ -12,6 +12,7 @@
 
 import os
 from socket import gethostname
+from urlparse import urljoin
 
 # Use new style url tag:
 # https://docs.djangoproject.com/en/dev/releases/1.3/#changes-to-url-and-ssi


Follow ups