mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-29 22:58:04 -08:00
Compare commits
4 Commits
046a9f838a
...
ddcff7a0b0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ddcff7a0b0 | ||
|
|
d143c60246 | ||
|
|
44371217a9 | ||
|
|
e5ebd5cf5c |
@@ -89,7 +89,8 @@ django-admin help # display usage information and a list
|
|||||||
django-admin makemigrations # create new migrations to the database based on the changes detected in the models
|
django-admin makemigrations # create new migrations to the database based on the changes detected in the models
|
||||||
django-admin migrate # synchronize the database state with your current state project models and migrations
|
django-admin migrate # synchronize the database state with your current state project models and migrations
|
||||||
django-admin remove_stale_contenttypes # Deletes stale content types (from deleted models) in your database.y.
|
django-admin remove_stale_contenttypes # Deletes stale content types (from deleted models) in your database.y.
|
||||||
django-admin runserver <port> # start the development webserver at 127.0.0.1 with the port <port> default 8000
|
python manage.py runserver # start the development webserver at 127.0.0.1 with the port <port> default 8000
|
||||||
|
python manage.py runserver 0.0.0.0:<port># start the development webserver at device ip with the port and accessible in local network
|
||||||
django-admin sendtestemail # Sends a test email to the email addresses specified as arguments.
|
django-admin sendtestemail # Sends a test email to the email addresses specified as arguments.
|
||||||
django-admin shell # Runs a Python interactive interpreter. Tries to use IPython or bpython, if one of them is available. Any standard input is executed as code.
|
django-admin shell # Runs a Python interactive interpreter. Tries to use IPython or bpython, if one of them is available. Any standard input is executed as code.
|
||||||
django-admin showmigrations # Shows all available migrations for the current project.
|
django-admin showmigrations # Shows all available migrations for the current project.
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ gu$ make lowercase until end of line
|
|||||||
<< indent line one column to left
|
<< indent line one column to left
|
||||||
== auto-indent current line
|
== auto-indent current line
|
||||||
ddp swap current line with next
|
ddp swap current line with next
|
||||||
ddkp swap current line with previous
|
ddkP swap current line with previous
|
||||||
:%retab fix spaces / tabs issues in whole file
|
:%retab fix spaces / tabs issues in whole file
|
||||||
:r [name] insert the file [name] below the cursor.
|
:r [name] insert the file [name] below the cursor.
|
||||||
:r !{cmd} execute {cmd} and insert its standard output below the cursor.
|
:r !{cmd} execute {cmd} and insert its standard output below the cursor.
|
||||||
|
|||||||
Reference in New Issue
Block a user