Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding in note re logged in user missing during post creation #78

Merged
merged 3 commits into from
Jul 27, 2014

Conversation

EdgyEdgemond
Copy link

missing true example code until someone recreates locally and copy+pastas or screenshots.
Notes that later homework example fixes the problem correctly.

fixes #68

Daniel Edgy Edgecombe added 2 commits July 27, 2014 02:46
… as havent reproduced locally yet) for loss of logged in used mid tutorial when creating users;
@@ -215,6 +215,8 @@ Try to save the form without `title` and `text`. Guess, what will happen!

Django is taking care of validating that all the fields in our form are correct. Isn't it awesome?

> As we have recently used the Django admin interface the system currently thinks we are logged in. There are a few situations that could lead to us being logged out (closing the browser, restarting the DB etc.). If you find that you are getting errors creating a post referring to a lack of a logged in user (Insert example error message here). Head to the admin page `http://127.0.0.1:8000/admin` and login again. This will fix the issue temporarily. There is a permanent fix awaiting you in the __Homework: add security to your website!__ chapter after the main tutorial.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

anonymous_post_new_error

Is the error you get when anonymously creating blog posts...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome :) I will add it in

oinopion added a commit that referenced this pull request Jul 27, 2014
Adding in note re logged in user missing during post creation
@oinopion oinopion merged commit 67f3dd6 into DjangoGirls:master Jul 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating blog entries while not logged in results in an ugly error
3 participants