DEV Community

Discussion on: How do you make a about page route?

Collapse
 
hlee131 profile image
H Lee

If it's a class based view, the as_view function is a member of the class View, that you inherited from:

path("about/", aboutpage_view.as_view(), name="about")

If it's a functional view, you don't even need the as_view function:

path("about/", aboutpage_view, name="about")

Oh and don't forget the comma after the first parameter.

Collapse
 
yobretyo profile image
Bret

It starts out as def aboutpage_view,
I tried that but it didn’t work

Collapse
 
yobretyo profile image
Bret

It was the templates folder, it wasn’t with manage.py