listener/app_engine/appengine_django/__init__.py
def ModifyAvailableCommands():
  """Removes incompatible commands and installs replacements where possible."""
  if have_appserver:
    # Commands are not used when running from an appserver.
    return
  from django.core import management
  project_directory = os.path.join(__path__[0], "../")
  if have_django_zip:
    FindCommandsInZipfile.orig = management.find_commands
    management.find_commands = FindCommandsInZipfile
  management.get_commands()
  # Replace startapp command which is set by previous call to get_commands().
  from appengine_django.management.commands.startapp import ProjectCommand
  management._commands['startapp'] = ProjectCommand(project_directory)
  RemoveCommands(management._commands)
  logging.debug("Removed incompatible Django manage.py commands")
Removes incompatible commands and installs replacements where possible.
Removes incompatible commands and installs replacements where possible.
Removes incompatible commands and installs replacements where possible .
def ModifyAvailableCommands():
  if have_appserver:
    return
  from django.core import management
  project_directory = os.path.join(__path__[0], "../")
  if have_django_zip:
    FindCommandsInZipfile.orig = management.find_commands
    management.find_commands = FindCommandsInZipfile
  management.get_commands()
  from appengine_django.management.commands.startapp import ProjectCommand
  management._commands['startapp'] = ProjectCommand(project_directory)
  RemoveCommands(management._commands)
  logging.debug("Removed incompatible Django manage.py commands")
def ModifyAvailableCommands ( ) : if have_appserver : return from django . core import management project_directory = os . path . join ( __path__ [ 0 ] , "../" ) if have_django_zip : FindCommandsInZipfile . orig = management . find_commands management . find_commands = FindCommandsInZipfile management . get_commands ( ) from appengine_django . management . commands . startapp import ProjectCommand management . _commands [ 'startapp' ] = ProjectCommand ( project_directory ) RemoveCommands ( management . _commands ) logging . debug ( "Removed incompatible Django manage.py commands" )
Removes incompatible commands and installs replacements where possible.
Removes incompatible commands and installs replacements where possible .
"""Removes incompatible commands and installs replacements where possible.""" # Commands are not used when running from an appserver. # Replace startapp command which is set by previous call to get_commands().