I am new to Django. I ran into a problem on chapter 5 of the Django book. Basically I was trying to save p1.save() in the interactive shell and could not figure it out.
Specifically, how do I change from … to >>> so I can save the the following input:
>>> from books.models import Publisher
>>> p1 = Publisher(name='Apress', address='2855 Telegraph Avenue',
... city='Berkeley', state_province='CA', country='U.S.A.',
... website='http://www.apress.com/')
>>> p1.save()
Thanks in advance!
P.S.
If you could tell me the proper name of … and >>> (command prompt?) it would also be appreciated.
...is just an indicator that it is a continuation line. So, probably your statement is not complete yet. Press enter once again if you think the statement is over. Else check for unclosed parentheses, apostrophes, brackets or pay attention to indentation.