I got a new question. I notice in the admin panel I can see flatpages. In each page in the admin it offers content.
Do I put html code in their? Or is it just a fast way to change text? I was given a zip folder that is named flatpages. Inside is each html page of what the website has or supposed to. It has very little html in the docuement showing that it's only html code when the url calls for this page. On Apr 16, 11:52 am, Aaron <shyhockey...@gmail.com> wrote: > I took a look at that site. It's informative. I just don't see > anything about flagpages. I saw how to map a url to a view meaning > server-sided code. > > currently I need 3 things to show up. 2 forms and content from > flagpages to display. I also need to use if statements to display > those 2 forms on the right pages/url etc. > > I already played around with the IF statements I need to use ifequal > statement for 2 pages So something like If title="home" or > title="sales" then display the request form. > > The problem is that I tried it and I get errors saying that I have 2 > or more arguments. > > Do you think I can do a if equal statement with a elseifequal > statement? > > The documentation and the site you gave I can't find the if statements > well I can on the django site documentation but in the examples it > shows ifequal only using one argument. > > I want a if statement that has one condition but can show the form > only if one of the 2 is true. So if the client is at the home page > then display the form. > > If the client is on the sales page then display the form Otherwise > don't display the form. > > I do think I have the if statements right. I used a if statement on > loading a image only on one page and It works. > > It's just the forms. > > Does the forms need any special way to be dealt with? > > I need to know how to load in the flatpages .html files which I was > told are extensions to the website. We have a base.html and a > root.html > > those are the guts of the page layout. We have those flagpages that > only has text. We had to form html code in the base.html file. > > so currently the text that is supposed to be loaded in from those > flagpages are not loading at all. I see none. > > We do have admin area where the pervious programmer I guess made a > flagpages area. Where we add the url, title, content. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---