Site web de Bio Hauts de France
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
917B

  1. #!/usr/bin/env python
  2. import os
  3. import sys
  4. from biohdf.settings import DJANGO_SETTINGS_MODULE
  5. if __name__ == "__main__":
  6. # Set the default settings module to use.
  7. os.environ.setdefault('DJANGO_SETTINGS_MODULE', DJANGO_SETTINGS_MODULE)
  8. try:
  9. from django.core.management import execute_from_command_line
  10. except ImportError:
  11. # The above import may fail for some other reason. Ensure that the
  12. # issue is really that Django is missing to avoid masking other
  13. # exceptions on Python 2.
  14. try:
  15. import django # noqa
  16. except ImportError:
  17. raise ImportError(
  18. "Couldn't import Django. Are you sure it's installed and "
  19. "available on your PYTHONPATH environment variable? Did you "
  20. "forget to activate a virtual environment?"
  21. )
  22. raise
  23. execute_from_command_line(sys.argv)