You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(note: If I hashtag out the second line above the web page works fine. So the second statement, added on page 20 is causing the error. Please advise what is causing this and advise a correction for your book for other readers.
John O'Grady
This (page 20) causes an error / exception as shown below when I load the blog site into my browser:
image.png
The text was updated successfully, but these errors were encountered:
Working thru the example in the book, on pages 19 and 20, when adding the author, I have run in to errors. Please advise.
My system is windows, Windows 10 64bit. My Python is 3.8.9 My Django is 4.2.4
I followed building the blog example exactly word for word from pages 1 thru 19. Everything is fine. At Page 19 you add the author names to the post.
Bottom of page 19 you add : "from django.contrib.auth.models import User" to models.py and on page 20 you add:
author = models.ForeignKey(User, on_delete=models.CASCADE, related_name= 'blog_posts')
(note: If I hashtag out the second line above the web page works fine. So the second statement, added on page 20 is causing the error. Please advise what is causing this and advise a correction for your book for other readers.
John O'Grady
This (page 20) causes an error / exception as shown below when I load the blog site into my browser:
image.png
![blog_error_Page20](https://private-user-images.githubusercontent.com/26723345/265501964-6458442f-cd7b-4a87-bbc0-1e8a41864cde.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NDEwNjgsIm5iZiI6MTczODg0MDc2OCwicGF0aCI6Ii8yNjcyMzM0NS8yNjU1MDE5NjQtNjQ1ODQ0MmYtY2Q3Yi00YTg3LWJiYzAtMWU4YTQxODY0Y2RlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDExMTkyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcxY2Y5N2M5ZmZlZDczNWFhMjEwNTg2YjFiYTUzZjczZTBlZTllMzg2Mzg3YThlODc4ZGFhOThmZTkyNzY4NzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8ogHc7wOWAGQuw8dGzeFyG3H6JFSjSogpzvC4Px2bCw)
The text was updated successfully, but these errors were encountered: