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 trialqasimalbaqali
17,839 PointsAdding more fields to the app
How to add more fields to the app, instead of one field that we added called content I want to add more fields so that when the user submits all the fields at once in the new_post form all of those fields are printed it out in the stream.html
How can I do that? I already tried adding more fields in the forms.py which worked with no errors, and I can see the new fields on new_post.html but I can't seem to know how to print them on the screen with 'content'.
EDIT: Made it to work if anyone want's the solution for my problem I'd be gladly to help you out with it if you are lookiong to do the same.
2 Answers
qasimalbaqali
17,839 PointsMade it to work if anyone want's the solution for my problem I'd be gladly to help you out with it if you are lookiong to do the same.
michaelangelo owildeberry
18,173 Pointswill return print them all? =)
qasimalbaqali
17,839 PointsIt doesn't work just like that haha, but I wish it did.
Iain Simmons
Treehouse Moderator 32,305 PointsIain Simmons
Treehouse Moderator 32,305 PointsI think you should add your solution here so anyone thinking the same thing after watching that video can find the solution here.
I'm assuming you had to add new fields to the 'Post' model?