mezzanine_project.py 478 B

12345678910111213141516171819
  1. #!/usr/bin/env python
  2. import sys
  3. from django.conf import settings
  4. from django.core import management
  5. def create_project():
  6. # Put mezzanine.conf in INSTALLED_APPS so call_command can find
  7. # our command,
  8. settings.configure()
  9. settings.INSTALLED_APPS = list(settings.INSTALLED_APPS) + ['mezzanine.bin']
  10. argv = sys.argv[:1] + ['mezzanine_project'] + sys.argv[1:]
  11. management.execute_from_command_line(argv)
  12. if __name__ == "__main__":
  13. create_project()