Roman
Roman

Reputation: 93

Pinax How to add new pages?

How to create new pages for Pinax after installation.

Upvotes: 1

Views: 78

Answers (1)

OllyTheNinja
OllyTheNinja

Reputation: 566

Most pages in a Django/Pinax app will be created the "normal" django way i.e. dynamically by writing views which are rendered to templates. If you want flat pages you can either create a template e.g. about.html in your templates folder and then add url(r"^about/", TemplateView.as_view(template_name="about.html"), name="about"), to your urls.py Alternatively you could use the flatpages app which lets you create flat pages from the admin system.

Upvotes: 1

Related Questions