Hello, I am attempting to write a small CMS application in hopes of learning Django more in depth.
Currently a page is just for editing textual content and it gets sent to a template (much like the flatpage) the problem is if I had a contact page, that happens to have a form on it, what would be the best approach to passing the "form" context to the template? Would I have to create a seperate template for each page that has more than just textual content? All my pages are handled by a simplistic page_handler view that takes a url and checks the Page model ... so I'm confused as to how I could dynamically pass a context to any page that I wanted. This might not be the right approach, but I don't see the way to do it. What I'd like to be able to do is just edit a page in the admin and be able to write {{ form }} or {{ contact_form }} and for it to know what context I am referring to, if that makes sense. Much appreciate, thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---