I'm not sure exactly what you want. Do you want a single poll, that the admins can choose? Should users be able to create polls ect. Anyways, in case you only want to display a single poll, the easiest way to accomplish that would probably to create a boolean field called display or front_page. Then you can import your poll model and filter on it and get the one(s) that have True value for front_page. If you want to make sure that only one can be displayed on the front page at a time, you can create a method instead, that also will hold True/ False, but only allow one to be True at a time. You could also go with the boolean field and just add the code in a view to make sure only one is True at a time.
Hope this helps. -Briel On 14 Jan., 19:42, Bradley <bproct...@gmail.com> wrote: > I'm new to Django and I'm trying to modify an existing django website > for a local newspaper. They would like to have a polls on the their > website. I just used the tutorial from the djangoproject website to > create the polls module. It works fine, except that I need it to work > inside a <div> section on the front page, not multiple pages like is > used in the tutorial. What is the standard procedure for something > like this? > > The tutorial had me create entries for /polls/ in urls.py I probably > don't need those. > Do I somehow Integrate the polls function into already existing > function that are used to display the front page? Not really sure how > to proceed > > Any help would be appreciated. > > Thanks, > Brad --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---