manage.py 382 B

123456789101112131415
  1. #!/usr/bin/env python
  2. import os
  3. import sys
  4. if __name__ == "__main__":
  5. from mezzanine.utils.conf import real_project_name
  6. settings_module = "%s.settings" % real_project_name("{{ project_name }}")
  7. os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)
  8. from django.core.management import execute_from_command_line
  9. execute_from_command_line(sys.argv)