Call django.setup() as part of reviewboard.initialize()
Review Request #8711 — Created Feb. 3, 2017 and submitted
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 ourinitialize()
method.
- Ran unit tests on Django 1.6 and 1.8.
- Ran the devserver on 1.8.
-
-
reviewboard/__init__.py (Diff revision 1) To match the other version-dependent sections like this, can you add a
# Django >= 1.7
before the import?
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+8) |
-
Tool: Pyflakes Processed Files: reviewboard/__init__.py Tool: PEP8 Style Checker Processed Files: reviewboard/__init__.py
-
Change Summary:
Always run setup, even when
is_running_test
isTrue
.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+9) |