Answer the question
In order to leave comments, you need to log in
What method to write for static pages?
Created a separate app in the project for static pages like: About Us, Buyers, Sellers, About the Company.
In the view, create a method for each page like
def about ()
def about_company ()
def for_seller ()
or can you create one method and somehow pull it out by ID already? How can this be implemented?
Answer the question
In order to leave comments, you need to log in
Use TemplateView
urls.py:
from django.views.generic import TemplateView
urlpatterns = patterns('',
url(r'^about/$', TemplateView.as_view(template_name='about.html')),
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question