Errata
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
Other Digital Version | online Chapter 10, Section "Refactor: Transferring the new_item Functionality into view_list" |
It is written: Note from the Author or Editor: |
Ze Santos | Jun 26, 2014 | Jul 23, 2014 |
chapter 7 United States |
the class StaticLiveServerCase was renamed to StaticLiveServerTestCase in django 1.7 release. Note from the Author or Editor: |
James Boorn | Sep 03, 2014 | Sep 19, 2014 | |
Printed, PDF | Page Appendix B ch31l002 |
ch31l002 should also be prepended with "from lists.views import HomePageView" Note from the Author or Editor: |
Iain Houston | Nov 11, 2014 | Mar 06, 2015 |
Printed | Page xxviii 2nd paragraph |
"Chichago School" should likely be "Chicago School" Note from the Author or Editor: |
Tim Chase | Oct 13, 2015 | Oct 16, 2015 |
ePub |
Ch. 3, Unit Testing w/a view, test.py listing |
In the epub 1st edition, the three assertions are improperly indented. Note from the Author or Editor: |
Ari Davidow | Aug 29, 2016 | |
Page x 1st paragraph under heading "Contacting O'Reilly" |
Text found was: |
Jeff Orr | Mar 29, 2013 | May 08, 2013 | |
Page Cover size |
The cover is sized approximately 29" x 38" which makes it more difficult to use. When telling the reader to fit to width, it bases the magnification on this one oversize page's width, leaving the real pages far too small to read. Note from the Author or Editor: |
David H. Brown | Apr 03, 2013 | May 08, 2013 | |
Other Digital Version | nil Chapter 5 / Section Saving the POST to the database / Beginning of a paragraph |
Missing word (possibly "ignore") in the following sentence: Note from the Author or Editor: |
Anonymous | Apr 10, 2014 | Jul 23, 2014 |
Other Digital Version | nil Chapter 6 |
Section: Implementing the new design using TDD Note from the Author or Editor: |
Anonymous | Apr 11, 2014 | Jul 23, 2014 |
Other Digital Version | [Site] Note from the Author or Editor: |
Stephen W | May 17, 2014 | Jun 09, 2014 | |
Page 1 2nd paragraph |
Sentence as is: |
Jeff Orr | Mar 29, 2013 | May 08, 2013 | |
Page 3 code block after 2nd paragraph |
In the code block I see: |
Jeff Orr | Mar 29, 2013 | May 08, 2013 | |
Page 4 In tip/suggestion/note |
Spelling error and no punctuation at end of sentence: |
Jeff Orr | Mar 29, 2013 | May 08, 2013 | |
Page 5 United Kingdom |
Just a suggestion. |
Dave Pawson | Apr 03, 2013 | May 08, 2013 | |
Page 9 Bottom, after last 'git status' command |
git status results should indicate that .gitignore has been modified: Note from the Author or Editor: |
Shafique Jamal | Jun 11, 2014 | Jul 23, 2014 | |
Page 11 2nd sentence |
The following comment line reads: |
Jeff Orr | Mar 30, 2013 | May 08, 2013 | |
Page 12 3rd paragraph, 2nd sentence |
extra space in compound adjective after hyphen: |
Jeff Orr | Mar 30, 2013 | May 08, 2013 | |
Page 12 functional_tests.py code example |
The code sample is missing the concluding: |
Michael Allan | Apr 03, 2013 | May 08, 2013 | |
Page 12 last paragraph |
Words in the Constant width font span multiple lines. Examples include: Note from the Author or Editor: |
James O'Donnell | Apr 03, 2013 | Jun 09, 2014 | |
Page 13 2nd paragraph, 2nd sentence |
Sentence starts: |
Jeff Orr | Mar 30, 2013 | May 08, 2013 | |
Page 13 3rd paragraph |
The third paragraph references code that is not in the code example on page 12. |
Jeff Orr | Mar 30, 2013 | May 08, 2013 | |
Page 13 3rd bullet point |
The text describes the "if __name__ == '__main__' clause" in this bullet point. Nowhere can I find in the code given previously that this clause is used. Not including this clause somewhere in the code will cause it to not run properly and not give the result from your example in the book. |
SoonerBourne | Apr 08, 2013 | May 08, 2013 | |
Page 13 Top of page |
The block of code: Note from the Author or Editor: |
Andrea Costantini | Jun 19, 2013 | Jun 09, 2014 | |
Page 15 Tip copy |
"dev. server" should be "dev server" |
James O'Donnell | Apr 03, 2013 | May 08, 2013 | |
Page 15 Next to symbols 2 and 3 |
The sentence currently reads, "setUp and tearDown special methods..." It should be updated to, "setUp and tearDown are special methods..." Note from the Author or Editor: |
Ramces Chirino | May 27, 2014 | Jul 23, 2014 | |
Page 16 bullet 2 |
"or at least to get past its current failure" |
James O'Donnell | Apr 03, 2013 | May 08, 2013 | |
Page 17 3rd paragraph, 1st sentence |
Sentence reads: |
Jeff Orr | Mar 31, 2013 | May 08, 2013 | |
Page 18 2nd paragraph, 3rd sentence |
The sentence reads: |
Jeff Orr | Mar 31, 2013 | May 08, 2013 | |
Page 20 3rd paragraph |
Should the following be listed as command prompts? |
Jeff Orr | Mar 31, 2013 | May 08, 2013 | |
Page 21 1st paragraph |
Sentence reads: |
Jeff Orr | Mar 31, 2013 | May 08, 2013 | |
Page 22 1st paragraph, second sentence |
Sentence starting with: |
Jeff Orr | Mar 31, 2013 | May 08, 2013 | |
Page 24 5th paragraph |
Should the following be in asterisks?: |
Jeff Orr | Mar 31, 2013 | May 08, 2013 | |
Printed | Page 31 (4) point in the list in the first paragraph |
The code (on page 30) referenced by the text at page 31 is this: Note from the Author or Editor: |
Mark | Aug 21, 2014 | Sep 19, 2014 |
Page 33 2nd to last sentence |
Sentence reads: |
Jeff Orr | Mar 31, 2013 | May 08, 2013 | |
Page 33 In the middle of the page, first paragraph after heading The ?Don?t test constants? rule, and templates to the rescue |
In bold, there is "Don?t test contants", and it should be constants... |
Marek Turnovec | Apr 04, 2013 | May 08, 2013 | |
Page 33 last code block |
assert wibble = 3 |
James O'Donnell | Apr 06, 2013 | May 08, 2013 | |
Printed | Page 48 Figure 4-4 |
The "Does the application need Refactoring?" element in the flow chart in Figure 4-4 has the 'Yes' label missing (in the connection arrow that leads to the big box below) Note from the Author or Editor: |
Mark | Aug 21, 2014 | Sep 19, 2014 |
Printed | Page 61 list/tests.py code |
While retrieving saved items with Items.objects.all() it is assumed that objects are returned in order they're insterted in database. This is not true, without order_by() order returned is "in no particular order", thus that test may fail randomly. It's not even guaranteed that primary keys are in in order of insertion so there should be some column, like insertion time stamp for ordering purposes. Note from the Author or Editor: |
Jani Tiainen | Jan 12, 2016 | |
Page 62 The figure |
The figure is not of the error, but of the working application. Note from the Author or Editor: |
Ramon Maria Gallart | Jan 30, 2014 | Jun 09, 2014 | |
Page 74 1st paragraph |
The paragraph states: Note from the Author or Editor: |
Fredrik Larsson | May 18, 2014 | Jun 09, 2014 | |
Printed | Page 84 Figure 6-1 |
In Figure 6-1, the "Does the application need Refactoring" element lacks a "Yes" on the connection down to the Unit test cycle Note from the Author or Editor: |
Jurgen | Dec 04, 2014 | Mar 06, 2015 |
ePub | Page 113 Just prior to header "What we skipped over...." |
I found moving the left margin by a fixed amount (-10px) didn't necessarily yield a pass. My window was slightly smaller, and thus I had to reduce it by -15px to pass. Note from the Author or Editor: |
Sean Robertson | Aug 29, 2013 | Jun 09, 2014 |
Mobi, Other Digital Version | Page 117 A Final Refactor Using URL includes - lists/urls.py (ch06l045). |
lists/urls.py (ch06l045). is missing "from lists import views" in addtion to the django.conf import. Also as noted in author's github https://github.com/hjwp/book-example/blob/chapter_06/lists/urls.py Note from the Author or Editor: |
Anonymous | Jun 30, 2015 | Oct 16, 2015 |
Printed | Page 147 After "Creating the Database.." Let's try the FTs again... |
Test fails as selenium is not installed. Note from the Author or Editor: |
Jurgen | Dec 10, 2014 | Mar 06, 2015 |
Mobi | Page 198 United States |
functional_test.py reads: |
john brasher | Apr 27, 2013 | May 08, 2013 |
Page 204 Code listing under 'Using the Form in the View' |
Inconsistent use of single/double quotes. Note from the Author or Editor: |
Anonymous | Aug 28, 2015 | Oct 16, 2015 | |
Page 237 "Staging Deploy" section, "Restart Gunicorn" |
Should the following: Note from the Author or Editor: |
Andrew Enfield | Sep 12, 2014 | Sep 19, 2014 | |
Printed, PDF | Page 260 Tip/suggestion paragraph |
In page 258, code snippet below "A Simple Mock to Unit Tests Our Initialize Function" the reader is instructed to add <a id="id_login">Sign in</a>, but in Note from the Author or Editor: |
Anton Antonov | Nov 22, 2014 | Mar 06, 2015 |
ePub | Page 266 listing on bottom of page |
The following code does not work with Django 1.6: Note from the Author or Editor: |
Anonymous | Nov 11, 2013 | Jun 09, 2014 |
Page 294 listing |
The showed template snipped should be in lists/templates/base.html instead of lists/templates/home.html. Note from the Author or Editor: |
Jan Dittberner | Apr 20, 2014 | Jun 09, 2014 | |
Page 295 first two listings |
The first listing should be in lists/templates/base.html instead of lists/templates/home.html. The test should go into lists/tests/test_views.py instead of lists/test_views.py that does not exist if you follow the guideline in previous chapters. Note from the Author or Editor: |
Jan Dittberner | Apr 20, 2014 | Jun 09, 2014 | |
Page 296 last paragraph and subsequent listings (including those on next page) |
just adding {% block %} tags around a template block does not make it necessary to use {% block ... %}{{ block.super }}{% endblock %} in derived templates, instead it is necessary to define an empty block in derived templates that do not need the block. Note from the Author or Editor: |
Jan Dittberner | Apr 20, 2014 | Jun 09, 2014 | |
Page 298 listing at the end of page |
the listing should be for file lists/tests/test_views.py instead of lists/tests.py |
Jan Dittberner | Apr 20, 2014 | Jun 09, 2014 | |
Printed, PDF | Page 308 accounts/authentication.py |
Code snippet requires "import logging" Note from the Author or Editor: |
Iain Houston | Nov 21, 2014 | Mar 06, 2015 |
Printed, PDF | Page 347 Bulgaria |
Below *Moving Down to the Forms Layer* header, in NewListForm's code. The save method Note from the Author or Editor: |
Anton Antonov | Dec 11, 2014 | Sep 19, 2014 |
Printed, PDF | Page 354 Aside |
"We'd forgotten about to ..." s/b "We'd forgotten to ..." Note from the Author or Editor: |
Iain Houston | Nov 26, 2014 | Mar 06, 2015 |
Printed, PDF | Page 359 Para 1 |
"conceivable" s/b "conceivably" (oh shame on my pedantic mood!) Note from the Author or Editor: |
Iain Houston | Nov 26, 2014 | Mar 06, 2015 |
Page 414 2nd paragraph |
"We can see they?re both happening in the generiv view's..." Change "generiv" to "generic". Note from the Author or Editor: |
Anonymous | May 05, 2014 | Jul 23, 2014 | |
Page 424 code listing for 'deploy_tools/provision.ansible.yaml' |
In the newest version of Ansible (1.9.2. just tested) the $inventory_hostname does not work any more. Note from the Author or Editor: |
Anonymous | Aug 26, 2015 | Oct 16, 2015 | |
Page 426 First paragraph |
The ansible command uses a different file name for the inventory: Note from the Author or Editor: |
Anonymous | Aug 26, 2015 | Oct 16, 2015 | |
Printed | Page 439 top of page |
Chef, Puppett, Salt.... Note from the Author or Editor: |
Jürgen | Dec 19, 2014 | Mar 06, 2015 |
ePub | Page 1162 index |
Spelling error in index "Fuctional Core" in the "F" section in the index. Note from the Author or Editor: |
John Antolak | Jun 20, 2014 | Jul 23, 2014 |
Printed, PDF, ePub | Page 10000 ch01.html |
command line operation: Note from the Author or Editor: |
Anonymous | Jul 04, 2016 |