askrobots / dbbasic-examples
Public
Example DBBasic apps (an API, a blog and a microblog) and a template for new DBBasic modules.
danq9
Add official module template for creating DBBasic packages
17cf88a
1 year, 1 month ago
History
admin.py · 596 bytes · 17 lines
| 1 | """ |
| 2 | Admin interface configuration for dbbasic-module |
| 3 | |
| 4 | This module is auto-discovered by dbbasic-admin. |
| 5 | Customize the icon, label, href, and order to control menu appearance. |
| 6 | """ |
| 7 | |
| 8 | # Navigation configuration |
| 9 | # This is automatically discovered and added to the admin menu |
| 10 | ADMIN_CONFIG = [ |
| 11 | { |
| 12 | 'icon': '📦', # Change to any emoji that represents your module |
| 13 | 'label': 'Things', # Change to plural noun (e.g., "Contacts", "Tasks", "Products") |
| 14 | 'href': '/admin/module', # Change "module" to your module name |
| 15 | 'order': 50 # Menu position: 10=top, 100=bottom |
| 16 | } |
| 17 | ] |