This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
facturio/manage.py

25 lines
638 B
Python
Raw Normal View History

2023-12-18 21:00:37 +01:00
#!/usr/bin/env python
import os
import sys
def main():
"""Run administrative tasks."""
2024-08-16 22:12:49 +02:00
os.environ.setdefault(
'DJANGO_SETTINGS_MODULE',
'facturio.settings.development',
)
2023-12-18 21:00:37 +01:00
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
2024-02-03 22:07:20 +01:00
'available on your PYTHONPATH environment variable? Did you '
2024-08-16 22:12:49 +02:00
'forget to activate a virtual environment?',
2023-12-18 21:00:37 +01:00
) from exc
execute_from_command_line(sys.argv)
2024-02-03 22:07:20 +01:00
if __name__ == '__main__':
2023-12-18 21:00:37 +01:00
main()