Skip to content
Snippets Groups Projects
manage.py 711 B
Newer Older
  • Learn to ignore specific revisions
  • sys.path.append(os.path.dirname(os.path.abspath(__file__)))
    
    
    
        os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production")
    
        # we're doing this here since otherwise, missing environment
        # files in settings result in AttributeError being raised, generating
        # a cryptic django.core.exceptions.AppRegistryNotReady error.
        # To prevent that, we explicitely load settings here before anything
        # else, so we fail fast with a relevant error. See #140 for more details.
        django.setup()
    
    
        from django.core.management import execute_from_command_line
    
        execute_from_command_line(sys.argv)