view manage.py @ 148:0eca2da07913

Make manage.py use local settings by default.
author Brian Neal <bgneal@gmail.com>
date Fri, 04 Jul 2014 14:24:43 -0500
parents e2868ad47a1e
children
line wrap: on
line source
#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "madeira.settings.local")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)