diff options
Diffstat (limited to '')
-rw-r--r-- | cheat/.cheat/django | 3 | ||||
-rw-r--r-- | cheat/.cheat/python | 19 |
2 files changed, 22 insertions, 0 deletions
diff --git a/cheat/.cheat/django b/cheat/.cheat/django index 5771985..5d25f15 100644 --- a/cheat/.cheat/django +++ b/cheat/.cheat/django @@ -14,3 +14,6 @@ pip install django # Run dev server python manage.py runserver 127.0.0.1:8000 + +# tinymce for django +https://github.com/romanvm/django-tinymce4-lite diff --git a/cheat/.cheat/python b/cheat/.cheat/python new file mode 100644 index 0000000..e4f5d36 --- /dev/null +++ b/cheat/.cheat/python @@ -0,0 +1,19 @@ +# Desc: Python is a high-level programming language. + +# Basic example of server with python +# Will start a Web Server in the current directory on port 8000 +# go to http://127.0.0.1:8000 + +# Python v2.7 +python -m SimpleHTTPServer +# Python 3 +python -m http.server 8000 + +# SMTP-Server for debugging, messages will be discarded, and printed on stdout. +python -m smtpd -n -c DebuggingServer localhost:1025 + +# Pretty print a json +python -mjson.tool + +# Generate requirements.txt +pipreqs /path/to/project |