Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (24 sloc) 774 Bytes
Indentation should be 4 spaces per level. DO NOT USE TABS.
For Vim users, this may be useful in your .vimrc (to highlight all tabs in the indentation):
au BufRead,BufNewFile *.py highlight PythonTabIndents ctermbg=red guibg=red
au BufRead,BufNewFile *.py match PythonTabIndents /^\s* /
(Some existing code have tabs as indentation. Convert them back to spaces as
necessary during the course of development, but otherwise leave them intact)
Print debug message:
Add the following lines to
import logging
level = logging.DEBUG,
format = '%(asctime)s %(levelname)s %(message)s',
In your code:
import logging
Something went wrong with that request. Please try again.