mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
inspired by e0a46367df/django/__main__.py (L1-L9)
see also https://code.djangoproject.com/ticket/24857
10 lines
233 B
Python
10 lines
233 B
Python
"""
|
|
invokes django-cadmin when the configurations module is run as a script.
|
|
|
|
Example: python -m configurations check
|
|
"""
|
|
|
|
from .management import execute_from_command_line
|
|
|
|
if __name__ == "__main__":
|
|
execute_from_command_line()
|