Call django.setup() as part of reviewboard.initialize()

Review Request #8711 — Created Feb. 3, 2017 and submitted

Information

Review Board
release-3.0.x
dc7e57e...

Reviewers

In Django 1.7+, there's a new setup() function which initializes logging and
apps. Attempting to do too much before this is called will fail with errors.
This change adds a call to that during our initialize() method.

  • Ran unit tests on Django 1.6 and 1.8.
  • Ran the devserver on 1.8.
Description From Last Updated

'reviewboard' imported but unused

reviewbotreviewbot

To match the other version-dependent sections like this, can you add a # Django >= 1.7 before the import?

chipx86chipx86

'reviewboard' imported but unused

reviewbotreviewbot

'reviewboard' imported but unused

reviewbotreviewbot
reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/__init__.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        reviewboard/__init__.py
    
    
  2. reviewboard/__init__.py (Diff revision 1)
     
     
    Show all issues
     'reviewboard' imported but unused
    
  3. 
      
brennie
  1. Ship It!
  2. 
      
chipx86
  1. 
      
  2. reviewboard/__init__.py (Diff revision 1)
     
     
     
     
    Show all issues

    To match the other version-dependent sections like this, can you add a # Django >= 1.7 before the import?

  3. 
      
david
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/__init__.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/__init__.py
    
    
  2. reviewboard/__init__.py (Diff revision 2)
     
     
    Show all issues
     'reviewboard' imported but unused
    
  3. 
      
david
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/__init__.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/__init__.py
    
    
  2. reviewboard/__init__.py (Diff revision 3)
     
     
    Show all issues
     'reviewboard' imported but unused
    
  3. 
      
chipx86
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (7dbe527)
Loading...