• 
      

    Fix attempting to update media directories when the site dir is moved.

    Review Request #8038 — Created March 8, 2016 and submitted

    Information

    Review Board
    release-2.0.x

    Reviewers

    We had old code that tried to update MEDIA_ROOT when the directory
    moved. However, this code was updating the wrong variable (setting
    MEDIA_ROOT to the static directory), and never tried to actually fix
    STATIC_ROOT. This was clearly wrong, and has been for some time.
    
    We now properly update the two variables based on their respective paths
    and settings.

    I hit this issue after moving my source tree around. This fixed it,
    setting the correct paths for both variables to their correct new values.

    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/admin/checks.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/admin/checks.py
      
      
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.0.x (2b6adc8)