diff --git a/dev/objects.inv b/dev/objects.inv index 853ec8e6..e26cdd5c 100644 Binary files a/dev/objects.inv and b/dev/objects.inv differ diff --git a/dev/reference/commands/index.html b/dev/reference/commands/index.html index 56067020..68764a9b 100644 --- a/dev/reference/commands/index.html +++ b/dev/reference/commands/index.html @@ -118,8 +118,9 @@ python manage.py components upgrade python manage.py components ext list python manage.py components ext run <extension> <command> -
components create¤usage: python manage.py components create [-h] [--path PATH] [--js JS] [--css CSS] [--template TEMPLATE] [--force] [--verbose] [--dry-run]
- name
+components create¤usage: python manage.py components create [-h] [--path PATH] [--js JS] [--css CSS] [--template TEMPLATE] [--force] [--verbose]
+ [--dry-run]
+ name
Create a new django component.
Positional Arguments:
nameOptions:
-h, --help--path PATHCOMPONENTS.dirs setting from your Django settings.--js JSscript.js.--css CSSstyle.css.--template TEMPLATEtemplate.html.--force--verbose--dry-runFalse.To use the command, run the following command in your terminal:
python manage.py components create <name> --path <path> --js <js_filename> --css <css_filename> --template <template_filename> --force --verbose --dry-run
Replace <name>, <path>, <js_filename>, <css_filename>, and <template_filename> with your desired values.
Here are some examples of how you can use the command:
Creating a Component with Default Settings
To create a component with the default settings, you only need to provide the name of the component:
This will create a new component named my_component in the components directory of your Django project. The JavaScript, CSS, and template files will be named script.js, style.css, and template.html, respectively.
Creating a Component with Custom Settings
You can also create a component with custom settings by providing additional arguments:
python manage.py components create new_component --path my_components --js my_script.js --css my_style.css --template my_template.html
@@ -130,7 +131,7 @@
Run extension commands.
Options:
-h, --helpSubcommands:
Run extension commands.
components ext list¤List all extensions.
Options:
-h, --help--all--columns name.--columns COLUMNS--columns name.-s, --simpleList all extensions.
List all extensions.
Options:
-h, --help--all--columns name.--columns COLUMNS--columns name.-s, --simpleList all extensions.
Prints the list of installed extensions:
You can run the command with:
Note
Command arguments and options are based on Python's argparse module.
For more information, see the argparse documentation.
components list¤List all components created in this project.
Options:
-h, --help--all--columns name,full_name,path.--columns COLUMNS--columns full_name,path.-s, --simpleList all components.
List all components created in this project.
Options:
-h, --help--all--columns name,full_name,path.--columns COLUMNS--columns full_name,path.-s, --simpleList all components.
Prints the list of available components:
full_name path
==================================================================================================
project.pages.project.ProjectPage ./project/pages/project
@@ -193,9 +194,11 @@
ProjectDashboard project.components.dashboard.ProjectDashboard ./project/components/dashboard
ProjectDashboardAction project.components.dashboard_action.ProjectDashboardAction ./project/components/dashboard_action
upgradecomponent¤usage: upgradecomponent [-h] [--path PATH] [--version] [-v {0,1,2,3}] [--settings SETTINGS]
- [--pythonpath PYTHONPATH] [--traceback] [--no-color] [--force-color] [--skip-checks]
-Deprecated. Use components upgrade instead.
Options:
-h, --help--path PATH--version-v {0,1,2,3}, --verbosity {0,1,2,3}--settings SETTINGS--pythonpath PYTHONPATH--traceback--no-color--force-color--skip-checksDeprecated. Use components upgrade instead.
startcomponent¤usage: startcomponent [-h] [--path PATH] [--js JS] [--css CSS] [--template TEMPLATE] [--force] [--verbose]
- [--dry-run] [--version] [-v {0,1,2,3}] [--settings SETTINGS] [--pythonpath PYTHONPATH]
- [--traceback] [--no-color] [--force-color] [--skip-checks]
- name
+ [--pythonpath PYTHONPATH] [--traceback] [--no-color] [--force-color]
+ [--skip-checks]
+Deprecated. Use components upgrade instead.
Options:
-h, --help--path PATH--version-v {0,1,2,3}, --verbosity {0,1,2,3}--settings SETTINGS--pythonpath PYTHONPATH--traceback--no-color--force-color--skip-checksDeprecated. Use components upgrade instead.
startcomponent¤usage: startcomponent [-h] [--path PATH] [--js JS] [--css CSS] [--template TEMPLATE] [--force]
+ [--verbose] [--dry-run] [--version] [-v {0,1,2,3}] [--settings SETTINGS]
+ [--pythonpath PYTHONPATH] [--traceback] [--no-color] [--force-color]
+ [--skip-checks]
+ name
Deprecated. Use components create instead.
Positional Arguments:
nameOptions:
-h, --help--path PATHCOMPONENTS.dirs setting from your Django settings.--js JSscript.js.--css CSSstyle.css.--template TEMPLATEtemplate.html.--force--verbose--dry-runFalse.--version-v {0,1,2,3}, --verbosity {0,1,2,3}--settings SETTINGS--pythonpath PYTHONPATH--traceback--no-color--force-color--skip-checksDeprecated. Use components create instead.