Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Customizing Django Templates Building Custom Tags Built-in Tags and Filters

Nicolas Baranowski
Nicolas Baranowski
1,992 Points

Modifying 'Read more' so it just shows the full text that is being truncated

Hi, The question is basically already in the title. I would like to know if it is possible to somehow instead of going to the 'courses:detail' view when clicking on "Read more" simply show the full description of the course that is being truncated. Of course I would like to show the description on the very same page without having to reload it... Thank you!

Nicolas Baranowski
Nicolas Baranowski
1,992 Points

Hi jacinator,

Thanks for your reply, I managed to get a result close to what I wanted using bootstrap's modals.

1 Answer

I would use jquery for something like that. I don't know if Django can handle that without a page reload. If you're willing to reload the page, then it could be done with something like making the reload button a form with a GET method.