Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2022 by missing hint/check regarding django $db module

What version are you running?
1.6b1 (reporting against code, see below as it seems a code and/or docs issue)

What's the URL of the page containing the problem?
(none yet)

What steps will reproduce the problem?
1. rb-site install /var/www/reviews
2. [go with mysql]

What is the expected output? What do you see instead?
Expected normal installer exit, got:

* Installing the site...
Building site directories ... OK
Building site configuration files ... OK
Creating database ... Traceback (most recent call last):
  File "/usr/bin/rb-site", line 8, in <module>
load_entry_point('ReviewBoard==1.6beta1', 'console_scripts', 'rb-site')() File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/", line 1690, in main
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/", line 1252, in run
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/", line 1511, in show_install_status
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/", line 778, in step
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/", line 346, in sync_database
    self.run_manage_command("syncdb", params)
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/cmdline/", line 452, in run_manage_command
File "/usr/lib/python2.6/site-packages/ReviewBoard-1.6beta1-py2.6.egg/reviewboard/admin/", line 13, in fix_django_evolution_issues
    import django.db.models.fields as model_fields
File "/usr/lib/python2.6/site-packages/django/db/", line 77, in <module>
    connection = connections[DEFAULT_DB_ALIAS]
File "/usr/lib/python2.6/site-packages/django/db/", line 92, in __getitem__
    backend = load_backend(db['ENGINE'])
File "/usr/lib/python2.6/site-packages/django/db/", line 50, in load_backend
    raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: 'django.db.backends.mysql' isn't an available database backend.
Try using django.db.backends.XXX, where XXX is one of:
    'dummy', 'oracle'
Error was: No module named mysql.base

What operating system are you using? What browser?
Linux; (irrelevant yet)

Please provide any additional information below.
Maybe the docs ( should be amended regarding the need to install a django module corresponding to chosen SQL server -- had to reiterate after "python-module-django-dbbackend-mysql" on ALT Linux, a little bit intimidating. :)

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to