Ticket #2491: fix_project_directory_not_defined.diff

File fix_project_directory_not_defined.diff, 1008 bytes (added by marcink@…, 18 years ago)
  • django/core/management.py

     
    12951295    """
    12961296    Configure the runtime environment. This can also be used by external
    12971297    scripts wanting to set up a similar environment to manage.py.
     1298
     1299    Return the project directory.
    12981300    """
    12991301    # Add this project to sys.path so that it's importable in the conventional
    13001302    # way. For example, if this file (manage.py) lives in a directory
     
    13071309
    13081310    # Set DJANGO_SETTINGS_MODULE appropriately.
    13091311    os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % project_name
     1312    return project_directory
    13101313
    13111314def execute_manager(settings_mod, argv=None):
    1312     setup_environ(settings_mod)
     1315    project_directory = setup_environ(settings_mod)
    13131316    action_mapping = DEFAULT_ACTION_MAPPING.copy()
    13141317
    13151318    # Remove the "startproject" command from the action_mapping, because that's
Back to Top