Name | django-command JSON |
Version |
2.2.0
JSON |
| download |
home_page | None |
Summary | Django-command is a command line tool that allows you to run commonly used commands in development Django projects. |
upload_time | 2024-05-06 13:41:14 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.5 |
license | Copyright (c) 2023 Abbas Isaev. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
keywords |
django-command
django
cli
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# django-command
Django-command is a command line tool that allows you to run commonly used commands in development
Django projects.
### Installation
```shell
pip install django-command
```
### Launch
There are several ways to run commands:
1. In the terminal, type django-command, after which a list of available commands for execution will appear, check
through
space which commands to execute. The marked commands will be executed in the order they were selected.
```shell
(venv) PS .\> django-command
[?] Select 1 or more commands:
> [ ] create_local [1] Creating locales (ru, en)
[ ] update_local [2] Updating and compiling locales
[ ] collect_static [3] Assembling static files in the STATIC_ROOT folder
[ ] make_migrations [4] Creating migrations
[ ] make_migrations_app [5] Creating the first migration for the application
[ ] make_empty_migrations_app [6] Create a blank migration for the application. Used to add default data to the database table
[ ] migrate [7] Applying migrations [--db_label default]
[ ] create_superuser [8] Creating a user with superuser rights
[ ] create_app [9] Creating an application
[ ] run_server [10] Running a project on a port number, or ipaddr:port (default "127.0.0.1:8000") [--port 127.0.0.1:8000]
[ ] install_requirements [11] Install all dependencies for a project from a file (default "requirements.txt")
[ ] print_requirements [12] Automatically generates all the necessary dependencies for the project, and also allows you to save this list to a file (default "requirements.txt") [--save_in_file requirements.txt]
```
2. Commands can be executed by their name or number.
```shell
django-command make_migrations migrate
# or with argument
django-command make_migrations migrate -db default
# or
django-command 4 7
```
#### List of commands and arguments
```shell
(venv) PS .\> django-command -h
usage: django-command [-h] [-db DB_LABEL] [-s SAVE_IN_FILE] [-p PORT] [-v] commands [commands ...]
CLI tool that allows you to run commonly used commands when developing Django projects.
positional arguments:
commands commands to run: create_local, update_local, collect_static, make_migrations,
make_migrations_app, make_empty_migrations_app, migrate, create_superuser,
create_app, run_server, install_requirements, print_requirements
optional arguments:
-h, --help show this help message and exit
-db DB_LABEL, --db_label DB_LABEL
database label for "migrate" command
-s SAVE_IN_FILE, --save_in_file SAVE_IN_FILE
save to file for "print_requirements" command
-p PORT, --port PORT port number, or ipaddr:port for "run_server" command
-v, --version show program's version number and exit
```
Raw data
{
"_id": null,
"home_page": null,
"name": "django-command",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": "Isaev Abbas <abbas.isaev@gmail.com>",
"keywords": "django-command, Django, cli",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/cb/0d/8e2558721520a5393f9ea002e13ae592ec5dfc87f90d7f05fdee18f3ad4a/django_command-2.2.0.tar.gz",
"platform": null,
"description": "# django-command\n\nDjango-command is a command line tool that allows you to run commonly used commands in development\nDjango projects.\n\n### Installation\n\n```shell\npip install django-command\n```\n\n### Launch\n\nThere are several ways to run commands:\n\n1. In the terminal, type django-command, after which a list of available commands for execution will appear, check\n through\n space which commands to execute. The marked commands will be executed in the order they were selected.\n ```shell\n (venv) PS .\\> django-command\n [?] Select 1 or more commands:\n > [ ] create_local [1] Creating locales (ru, en)\n [ ] update_local [2] Updating and compiling locales\n [ ] collect_static [3] Assembling static files in the STATIC_ROOT folder\n [ ] make_migrations [4] Creating migrations\n [ ] make_migrations_app [5] Creating the first migration for the application\n [ ] make_empty_migrations_app [6] Create a blank migration for the application. Used to add default data to the database table\n [ ] migrate [7] Applying migrations [--db_label default]\n [ ] create_superuser [8] Creating a user with superuser rights\n [ ] create_app [9] Creating an application\n [ ] run_server [10] Running a project on a port number, or ipaddr:port (default \"127.0.0.1:8000\") [--port 127.0.0.1:8000]\n [ ] install_requirements [11] Install all dependencies for a project from a file (default \"requirements.txt\")\n [ ] print_requirements [12] Automatically generates all the necessary dependencies for the project, and also allows you to save this list to a file (default \"requirements.txt\") [--save_in_file requirements.txt]\n ```\n\n2. Commands can be executed by their name or number.\n ```shell\n django-command make_migrations migrate\n # or with argument\n django-command make_migrations migrate -db default\n # or\n django-command 4 7\n ```\n\n#### List of commands and arguments\n\n ```shell\n(venv) PS .\\> django-command -h\nusage: django-command [-h] [-db DB_LABEL] [-s SAVE_IN_FILE] [-p PORT] [-v] commands [commands ...] \n\nCLI tool that allows you to run commonly used commands when developing Django projects. \n\npositional arguments: \n commands commands to run: create_local, update_local, collect_static, make_migrations,\n make_migrations_app, make_empty_migrations_app, migrate, create_superuser, \n create_app, run_server, install_requirements, print_requirements \n\noptional arguments:\n -h, --help show this help message and exit\n -db DB_LABEL, --db_label DB_LABEL\n database label for \"migrate\" command\n -s SAVE_IN_FILE, --save_in_file SAVE_IN_FILE\n save to file for \"print_requirements\" command\n -p PORT, --port PORT port number, or ipaddr:port for \"run_server\" command\n -v, --version show program's version number and exit\n```\n",
"bugtrack_url": null,
"license": "Copyright (c) 2023 Abbas Isaev. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.",
"summary": "Django-command is a command line tool that allows you to run commonly used commands in development Django projects.",
"version": "2.2.0",
"project_urls": {
"Homepage": "https://github.com/AbbasIsaev/django-command",
"Repository": "https://github.com/AbbasIsaev/django-command.git"
},
"split_keywords": [
"django-command",
" django",
" cli"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "cb0d8e2558721520a5393f9ea002e13ae592ec5dfc87f90d7f05fdee18f3ad4a",
"md5": "5acec8fa916d66c3a11797f61898e71c",
"sha256": "3af7024bfe7b30ee7b54a30912cfa443e5432fbabd9a65ee442f11e0697f7a9d"
},
"downloads": -1,
"filename": "django_command-2.2.0.tar.gz",
"has_sig": false,
"md5_digest": "5acec8fa916d66c3a11797f61898e71c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 5381,
"upload_time": "2024-05-06T13:41:14",
"upload_time_iso_8601": "2024-05-06T13:41:14.484102Z",
"url": "https://files.pythonhosted.org/packages/cb/0d/8e2558721520a5393f9ea002e13ae592ec5dfc87f90d7f05fdee18f3ad4a/django_command-2.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-06 13:41:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AbbasIsaev",
"github_project": "django-command",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "django-command"
}