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

Days 045-048 Build a simple Django app [v20/22] missing messages #91

Closed
chriskessler opened this issue Jun 14, 2022 · 2 comments
Closed

Comments

@chriskessler
Copy link

Hi There,
I noticed once switching to class-based views from function-based, we lost the messages for successful new|update|delete in the video and it wasn't addressed. Any chance that could be touched on? Or maybe I missed something?

Thanks!
Chris

@bbelderbos
Copy link
Collaborator

bbelderbos commented Jun 14, 2022

Good catch, I did not realize that, thanks!

It's hard to update the videos right now, but you can try to use the SuccessMessageMixin using this example:
https://dev.to/serhatteker/show-message-in-class-based-views-django-4a4d

I abandoned cbvs since ;) - I find function based views way more straightforward. See this reference:
https://spookylukey.github.io/django-views-the-right-way/

HTH
Bob

@chriskessler
Copy link
Author

Great! Thanks for the links and for the quick response

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

No branches or pull requests

2 participants