Closed
Bug 656979
Opened 14 years ago
Closed 14 years ago
webifyme-dev Update settings with multi-db-router
Categories
(mozilla.org Graveyard :: Server Operations, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ozten, Assigned: oremj)
References
()
Details
Per Bug#650025 Comment#1
We've added multi-db-router to this project.
Please make sure this is library is in the path.
Please make sure to copy over any new settings.
Traceback (most recent call last):
File "./manage.py", line 46, in <module>
execute_manager(settings)
File "/data/engagement-dev/python/webifyme.org/webifyme/ff4/vendor/src/django/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/data/engagement-dev/python/webifyme.org/webifyme/ff4/vendor/src/django/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/data/engagement-dev/python/webifyme.org/webifyme/ff4/vendor/src/django/django/core/management/__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/data/engagement-dev/python/webifyme.org/webifyme/ff4/vendor/src/django/django/core/management/__init__.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/data/engagement-dev/python/webifyme.org/webifyme/ff4/vendor/src/django/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/data/engagement-dev/python/webifyme.org/webifyme/ff4/vendor/src/django-south/south/management/commands/migrate.py", line 11, in <module>
from django.db import models
File "/data/engagement-dev/python/webifyme.org/webifyme/ff4/vendor/src/django/django/db/__init__.py", line 16, in <module>
router = ConnectionRouter(settings.DATABASE_ROUTERS)
File "/data/engagement-dev/python/webifyme.org/webifyme/ff4/vendor/src/django/django/db/utils.py", line 100, in __init__
module = import_module(module_name)
File "/data/engagement-dev/python/webifyme.org/webifyme/ff4/vendor/src/django/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/data/virtualenvs/src/django-multidb-router/multidb/__init__.py", line 41, in <module>
if getattr(settings, 'SLAVE_DATABASES'):
File "/data/engagement-dev/python/webifyme.org/webifyme/ff4/vendor/src/django/django/utils/functional.py", line 177, in __getattr__
return getattr(self._wrapped, name)
AttributeError: 'Settings' object has no attribute 'SLAVE_DATABASES'
/data/engagement-dev/python/webifyme.org/update: line 10: Error!!! Exit status of the last command was 1: command not found
Assignee | ||
Updated•14 years ago
|
Assignee: server-ops → jeremy.orem+bugs
Assignee | ||
Comment 1•14 years ago
|
||
I don't see an example in settings.py. What should the config look like?
Reporter | ||
Comment 2•14 years ago
|
||
(In reply to comment #1)
ff4/settings_local.py.default
Also, brez just updated the vendor library, please check that our auto-update script picks up src/django-multidb-router
Sorry I forgot to bump the submodule version # when I added the code to webifyme-lib - it will work now.. to manually update it do
$ git submodule update --recursive
Reporter | ||
Comment 4•14 years ago
|
||
(In reply to comment #3)
Pegging celery at af18771ea26faf7a2005 in Vendor library
Please reload the app.
Reporter | ||
Comment 5•14 years ago
|
||
I've bumped vendor, oremj confirmed fix.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•