After Enable Web View - object has no attribute 'get_page_info'

I enabled Web View for Doctype Airplane Flight, added Is Published and Router field but below error is showing after clicking on any Airplane Flight from list.

Traceback (most recent call last):
  File "apps/frappe/frappe/website/", line 20, in get_response
    response = renderer_instance.render()
  File "apps/frappe/frappe/website/page_renderers/", line 41, in render
    html = self.get_html()
  File "apps/frappe/frappe/website/", line 523, in cache_html_decorator
    html = func(*args, **kwargs)
  File "apps/frappe/frappe/website/page_renderers/", line 50, in get_html
  File "apps/frappe/frappe/website/page_renderers/", line 57, in update_context
AttributeError: 'AirplaneFlight' object has no attribute 'get_page_info'

Suggestions and any hint is highly appreciated.


The famous Hussain courses :wink:

From what class herit your Airplane Flight class ? Document I guess ?
May be you should check in ERPNext or Frappe core code some website page to find existing example.

My hint, the solution is to change class heritage of your Airplane Flight Doctype

1 Like

Yes. Its #bwh course example.
I will check for existing pages example.

Hi @umarless , did you find a solution to this? I have the exact issue


Make a global search in Frappe framework to find

def get_page_info

You’ll find a class where this method is implemented.

You just have to make the import statement and put it as constructor heritage on your class AirplaneFlight

That’s the method I used to solved this riddle when I made this training.
My guess is, Hussain let this undocumented to let trainers prove or improve their skills in digging into Frappe Framework mechanics

Really really nice training by the way, I’ve spent a real good time by implementing this app. It demonstrate how power full (battery included, as it was said) Frappe framework is.


Change the class Document to WebsiteGenerator file Before enable Web View

from frappe.model.document import Document

class DoctypeName(Document):
	pass file After enable Web View

from import WebsiteGenerator

class DoctypeName(WebsiteGenerator):