Ticket #12231: management.patch

File management.patch, 554 bytes (added by mleduc, 15 years ago)

django.core.management.init.py patch

  • __init__.py

    old new  
    399399    project_directory, settings_filename = os.path.split(p)
    400400    if project_directory == os.curdir or not project_directory:
    401401        project_directory = os.getcwd()
    402     project_name = os.path.basename(project_directory)
     402    project_name = settings_mod.__package__
    403403
    404404    # Strip filename suffix to get the module name.
    405405    settings_name = os.path.splitext(settings_filename)[0]
Back to Top