2011-07-11 02:10:22 +01:00
|
|
|
#!/usr/bin/env python
|
2018-04-15 16:28:13 +01:00
|
|
|
import os
|
|
|
|
import sys
|
2020-07-18 16:23:54 +01:00
|
|
|
"""This file is the route to run the standard Django utilities on the command line.
|
2021-03-17 21:09:44 +00:00
|
|
|
These are the most useful for troggle:
|
2020-07-18 16:23:54 +01:00
|
|
|
|
|
|
|
python manage.py test -- runs the troggle test suite
|
|
|
|
python manage.py test -v 3 -- runs the troggle test suite with more detailed output
|
2021-03-17 21:09:44 +00:00
|
|
|
python -Wall manage.py check -- runs the python package deprecation warnings
|
2020-07-18 16:23:54 +01:00
|
|
|
python manage.py makemigrations -- creates django db migrations files
|
|
|
|
python manage.py inspectdb -- creates datamodel documentaiton as python file
|
|
|
|
python manage.py check -v 3 --deploy -- runs the django system security warnings
|
|
|
|
python manage.py runserver 0.0.0.0:3777 -v 3 -- runs troggle SQLite webserver on port 3777
|
|
|
|
python manage.py diffsettings | grep "###" -- lists what is non-standard django in the settings
|
|
|
|
"""
|
2011-07-11 02:10:22 +01:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2018-04-15 12:00:59 +01:00
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
|
2018-04-15 16:28:13 +01:00
|
|
|
|
2018-04-15 12:00:59 +01:00
|
|
|
from django.core.management import execute_from_command_line
|
|
|
|
|
2018-04-15 16:28:13 +01:00
|
|
|
execute_from_command_line(sys.argv)
|