I have read in a several places (e.g. here) that I can use M-x space to add/remove breakpoints in my python files when debugging with Emacs.
However, when I type M-x space once I have opened pdb on the file, Emacs prompts me with a large autocompletion list, as if I were to type any other M-x command
Q1:
How can I use M-x space to add or remove breakpoints once I have started a pdb session in Emacs?
Q2:
The top answer in the thread above says I should invoke the following two lines from pdb to use M-x space to add/remove breakpoints:
import sys
sys.path.append('/path/to/directory/containing/views.py')
but what is views.py? Is that something specific to Django?
I think you are mistaken.
gud-breakis set toC-x SPC(SPCmeans space). I guess this is just a typo in the linked post.