support setting DJANGO_PROJECT_FOLDER via --project-root-path

settings file can be located in a subdirectory of the project
This commit is contained in:
Victor Seva authored and David Wobrock committed 2019-07-10 10:20:14 +02:00
1 parent 83850fa3da
commit c0d33dd579
2 files changed
+11 -4

No files matched your search

+2 -1
View File
@@ -43,7 +43,7 @@ Add the migration linter your ``INSTALLED_APPS``:
]
``python manage.py lintmigrations [GIT_COMMIT_ID] [--ignore-name-contains IGNORE_NAME_CONTAINS] [--include-apps INCLUDE_APPS [INCLUDE_APPS ...] | --exclude-apps EXCLUDE_APPS [EXCLUDE_APPS ...]]``
``python manage.py lintmigrations [GIT_COMMIT_ID] [--ignore-name-contains IGNORE_NAME_CONTAINS] [--include-apps INCLUDE_APPS [INCLUDE_APPS ...] | --exclude-apps EXCLUDE_APPS [EXCLUDE_APPS ...]] [--project-root-path DJANGO_PROJECT_FOLDER]``
================================================== ===========================================================================================================================
Parameter Description
@@ -59,6 +59,7 @@ Add the migration linter your ``INSTALLED_APPS``:
``--no-cache`` Don't use a cache.
``--applied-migrations`` Only lint migrations that are applied to the selected database. Other migrations are ignored.
``--unapplied-migrations`` Only lint migrations that are not yet applied to the selected database. Other migrations are ignored.
``--project-root-path DJANGO_PROJECT_FOLDER`` An absolute or relative path to the django project.
================================================== ===========================================================================================================================
Examples