Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
28b5ec64
Commit
28b5ec64
authored
Oct 02, 2018
by
Alexandre Jacques
Committed by
Marc Cornellà
Oct 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
django: add README (#7181)
parent
ca8c7bad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
README.md
plugins/django/README.md
+56
-0
No files found.
plugins/django/README.md
0 → 100644
View file @
28b5ec64
# Django plugin
This plugin adds completion and hints for the
[
Django Project
](
https://www.djangoproject.com/
)
`manage.py`
commands
and options.
To use it, add
`django`
to the plugins array in your zshrc file:
```
zsh
plugins
=(
... django
)
```
## Usage
```
zsh
$>
python manage.py
(
press <TAB> here
)
```
Would result in:
```
zsh
cleanup
--
remove old data from the database
compilemessages
--
compile .po files to .mo
for
use with gettext
createcachetable
--
creates table
for
SQL cache backend
createsuperuser
--
create a superuser
dbshell
--
run command-line client
for
the current database
diffsettings
--
display differences between the current settings and Django defaults
dumpdata
--
output contents of database as a fixture
flush
--
execute
'sqlflush'
on the current database
inspectdb
--
output Django model module
for
tables
in
database
loaddata
--
install
the named fixture
(
s
)
in
the database
makemessages
--
pull out all strings marked
for
translation
reset
--
executes
'sqlreset'
for
the given app
(
s
)
runfcgi
--
run this project as a fastcgi
runserver
--
start a lightweight web server
for
development
...
```
If you want to see the options available for a specific command, try:
```
zsh
$>
python manage.py makemessages
(
press <TAB> here
)
```
And that would result in:
```
zsh
--all
-a
--
re-examine all code and templates
--domain
-d
--
domain of the message files
(
default:
"django"
)
--extensions
-e
--
file extension
(
s
)
to examine
(
default:
".html"
)
--help
--
display
help
information
--locale
-l
--
locale to process
(
default: all
)
--pythonpath
--
directory to add to the Python path
--settings
--
python path to settings module
...
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment