Ticket #9789: jython_settings.diff

File jython_settings.diff, 693 bytes (added by fwierzbicki, 6 years ago)
  • django/core/management/__init__.py

     
    312312        project_directory = os.getcwd()
    313313    project_name = os.path.basename(project_directory)
    314314    settings_name = os.path.splitext(settings_filename)[0]
     315    # Strip $py for Jython compiled files (like settings$py.class)
     316    if settings_name.endswith("$py"):
     317        settings_name = settings_name[:-3]
    315318    sys.path.append(os.path.join(project_directory, os.pardir))
    316319    project_module = __import__(project_name, {}, {}, [''])
    317320    sys.path.pop()
Back to Top