2390: Adding a site commands directory breaks all management commands

roy.jean*********@gmai***** (Google Code) (Is this you? Claim this profile.)
chipx86
chipx86
May 12, 2014
What version are you running?
1.6.3

What steps will reproduce the problem?
1. Create a commands directory in a reviewboard site.
2. Try to run any management command, such as rb-site manage <path> upgrade

What is the expected output? What do you see instead?
The management command should run. Instead, I get this output for every management command that tries to run:

[!] Unable to execute the manager command index: Settings cannot be
    imported, because environment variable DJANGO_SETTINGS_MODULE is
    undefined.

Removing the commands directory fixes the problem.

What operating system are you using? What browser?
Mac OS X Lion, Safari 5.1.
david
#1 david
  • +UserError
#2 roy.jean*********@gmai***** (Google Code) (Is this you? Claim this profile.)
Care to explain what I did wrong? I followed the documentation on adding site-specific management commands.
david
#3 david
Can you point me to the documentation in question?
#4 roy.jean*********@gmai***** (Google Code) (Is this you? Claim this profile.)
http://www.reviewboard.org/docs/releasenotes/dev/reviewboard/1.5/#custom-management-commands
chipx86
#5 chipx86
This sounds like a bug. We don't have unit testing for this, unfortunately, so something may have broken. It's probably an easy fix, though.

(Might be a good one to have a student fix during our Sprint?)
  • -UserError
    +New
  • +Component-RB-Site
    +Milestone-Release1.6.x
    +EasyFix
  • +chipx86
david
#8 david
  • -Milestone-Release1.6.x
#9 matthew********@gmai***** (Google Code) (Is this you? Claim this profile.)
I will work on this.
#10 matthew********@gmai***** (Google Code) (Is this you? Claim this profile.)
Could not reproduce on master, going to work on a different bug.
chipx86
#11 chipx86
I think this is fixed. Been using it myself. Please reopen if you can verify it on RB 1.7 or 2.0.
  • -New
    +Fixed