DjangoGirls / tutorial-extensions

Additional tasks for tutorial
https://tutorial-extensions.djangogirls.org
Other
162 stars 203 forks source link

Issue at Improving the layout - #73

Closed amnocas closed 6 years ago

amnocas commented 7 years ago

At the section of this tutorial it is mentioned that: "So now we have made sure that only authorized users (ie. us) can add, edit or publish posts. But everyone still gets to view the buttons to add or edit posts. " However I believe that is not true, if you are not authorized you cannot see it because:

{% if user.is_authenticated %} {% else %}

I tried and I do not see those buttons... can you please check that this is the intended behavior?

Best and congratulations this is the best tutorial I've seen on django!

Ana

sagayev commented 7 years ago

You are partially right. On main page, everyone cannot see these buttons. But however if you copy the link(/post/new/ in my case http://sagayev.pythonanywhere.com/post/new/) and paste into an incognito window you will be able access those pages. However you will not be able to add new post. Because "a user" is needed. I also think this part of the tutorial should be clarified.

aniav commented 6 years ago

This section of the tutorial was updated in the meantime and it now displays proper information. Thank you! 🌷