
import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))

from reviewboard import settings
from django.core.management import execute_manager


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')


def scan_resource(resource):
    for child in resource.item_child_resources:
        scan_resource(child)

    for child in resource.list_child_resources:
        scan_resource(child)


if __name__ == "__main__":
    execute_manager(settings)


import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))

from reviewboard import settings
from django.core.management import execute_from_command_line


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')


def scan_resource(resource):
    for child in resource.item_child_resources:
        scan_resource(child)

    for child in resource.list_child_resources:
        scan_resource(child)


if __name__ == "__main__":
    execute_from_command_line()

Fix building the manual with Django 1.6.
Fix building the manual with Django 1.6.

This is a trivial change that just switches from calling execute_manager
to execute_from_command_line, in order to build again on Django 1.6.

  
  import os
  import sys
  sys.path.insert(0, os.path.join(__file__, "..", ".."))
  sys.path.insert(0, os.path.dirname(__file__))
  
  from reviewboard import settings
- from django.core.management import execute_manager
+ from django.core.management import execute_from_command_line
  
  
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')
  
  
  def scan_resource(resource):
      for child in resource.item_child_resources:
          scan_resource(child)
  
      for child in resource.list_child_resources:
          scan_resource(child)
  
  
  if __name__ == "__main__":
-     execute_manager(settings)
+     execute_from_command_line()
  
Fix building the manual with Django 1.6.
## Code Before:

import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))

from reviewboard import settings
from django.core.management import execute_manager


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')


def scan_resource(resource):
    for child in resource.item_child_resources:
        scan_resource(child)

    for child in resource.list_child_resources:
        scan_resource(child)


if __name__ == "__main__":
    execute_manager(settings)

## Instruction:
Fix building the manual with Django 1.6.
## Code After:

import os
import sys
sys.path.insert(0, os.path.join(__file__, "..", ".."))
sys.path.insert(0, os.path.dirname(__file__))

from reviewboard import settings
from django.core.management import execute_from_command_line


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'reviewboard.settings')


def scan_resource(resource):
    for child in resource.item_child_resources:
        scan_resource(child)

    for child in resource.list_child_resources:
        scan_resource(child)


if __name__ == "__main__":
    execute_from_command_line()
