def add_args(self, parser: configargparse.ArgumentParser) -> None:
gr_django = parser.add_argument_group("Django Assembler options")
gr_django.add_argument("--collect-static", dest="collect_static", action="store_true", default=False,
help="If set, run 'django-admin.py collectstatic' inside the bundle")
gr_django.add_argument("--static-root", dest="static_root", default=None,
help="Where to collect static files from (Django's STATIC_ROOT)")
gr_django.add_argument("--assert-static-root-empty", dest="fresh_static", action="store_true", default=False,
help="If set, this script will make sure that STATIC_ROOT is empty " +
"before running collectstatic by DELETING it (be careful!)")
gr_django.add_argument("--django-settings", dest="django_settings_module", default=None,
help="'--settings' argument to pass to django-admin.py when it is called by " +
"this script. If --django-generate-secret-key is set, SECRET_KEY will be set "
"in the environment.")
gr_django.add_argument("--django-gen-secret-key", dest="django_secret_key_file", default=None,
env_var="DJANGO_GEN_SECRET_KEY",
help="If set, GoPythonGo will write SECRET_KEY='(random)' to the given filename. The "
"resulting file can be read from envdir or systemd (EnvironmentFile). This is "
"useful for shipping environment configuration for projects adhering to 12factor "
"(and/or using the django12factor library).")
评论列表
文章目录