Ticket #8256: project_directory.diff

File project_directory.diff, 714 bytes (added by chrj, 7 years ago)

diff agains r8320

  • django/core/management/__init__.py

     
    104104        # Find the project directory
    105105        try:
    106106            from django.conf import settings
    107             project_directory = setup_environ(__import__(settings.SETTINGS_MODULE))
     107            project_directory = setup_environ(__import__(
     108                settings.SETTINGS_MODULE, {}, {},
     109                (settings.SETTINGS_MODULE.split(".")[-1],))
     110            )
    108111        except (AttributeError, EnvironmentError, ImportError):
    109112            project_directory = None
    110113
Back to Top