Skip to content

Latest commit

 

History

History
89 lines (62 loc) · 2.85 KB

File metadata and controls

89 lines (62 loc) · 2.85 KB

The Dashboard

The Dashboard is the bundled, web-based IDE for py4web. You will use it extensively to manage applications and inspect databases. Browsing its interface is also a good way to get a feel for py4web and its components.

The main web page

When you start py4web, it launches a web server that listens on http://127.0.0.1:8000 — that is, TCP port 8000 on your local machine, over plain HTTP.

By default this address is reachable only from the local machine. Open it in a browser like Firefox or Google Chrome:

images/main_page.png

The buttons are:

Login into the Dashboard

Click the Dashboard button to reach the Dashboard login. Enter the password you set up earlier (see :ref:`set_password command option`). If you don't remember it, stop py4web with Ctrl-C, set a new password, and start py4web again.

images/dashboard_login.png

After you enter the correct dashboard password, the dashboard appears with all of its tabs collapsed.

images/dashboard.png

Click on a tab title to expand. Tabs are context dependent. For example, open tab “Installed Applications” and click on an installed application to select it.

This will create new tabs “Routes”, “Files”, and “Model” for the selected app.

images/dashboard_main.png

The “Files” tab lets you browse the folder that contains the selected app and edit any file in it. By default, edits are picked up automatically the next time the app is requested. If you launched py4web with a different --watch setting (see :ref:`run command option`), click “Reload Apps” under “Installed Applications” for changes to take effect. If an app fails to load, its button turns red. Click it to see the underlying error.

images/dashboard_edit.png

The Dashboard exposes every app's database through PyDAL's REST API and provides a web interface for searching and performing CRUD operations against those databases.

images/dashboard_restapi.png

If a user visits an app and triggers a bug, the user is issued a ticket.

images/dashboard_error.png

The ticket is recorded in the py4web service database. The dashboard shows the most common recent issues and lets you search through tickets.

images/dashboard_ticket.png