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.
It starts out as def aboutpage_view, I tried that but it didn’t work
It was the templates folder, it wasn’t with manage.py
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If it's a class based view, the as_view function is a member of the class View, that you inherited from:
If it's a functional view, you don't even need the as_view function:
Oh and don't forget the comma after the first parameter.
It starts out as def aboutpage_view,
I tried that but it didn’t work
It was the templates folder, it wasn’t with manage.py