2390: Adding a site commands directory breaks all management commands
- Fixed
- Review Board
roy.jean*********@gmai***** (Google Code) (Is this you? Claim this profile.) | |
|
|
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.
Care to explain what I did wrong? I followed the documentation on adding site-specific management commands.
http://www.reviewboard.org/docs/releasenotes/dev/reviewboard/1.5/#custom-management-commands
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
I will work on this.
Could not reproduce on master, going to work on a different bug.