Add Jet Dashboard

Add Documentation link
Update models for dashboard
This commit is contained in:
Alexander Hosking 2021-12-03 13:39:30 -05:00
parent a5e895f9ad
commit bd19684ef8
5 changed files with 30 additions and 2 deletions

View File

@ -11,3 +11,8 @@ The AHosking.com API
1. Activate environment 1. Activate environment
`.\.env\Scripts\activate` `.\.env\Scripts\activate`
1. 1.
### Third-party
* https://pypi.org/project/django-3-jet/

View File

@ -4,5 +4,26 @@
"path": "." "path": "."
} }
], ],
"settings": {} "settings": {
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#fbed80",
"activityBar.activeBorder": "#06b9a5",
"activityBar.background": "#fbed80",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#06b9a5",
"activityBarBadge.foreground": "#15202b",
"sash.hoverBorder": "#fbed80",
"statusBar.background": "#f9e64f",
"statusBar.foreground": "#15202b",
"statusBarItem.hoverBackground": "#f7df1e",
"statusBarItem.remoteBackground": "#f9e64f",
"statusBarItem.remoteForeground": "#15202b",
"titleBar.activeBackground": "#f9e64f",
"titleBar.activeForeground": "#15202b",
"titleBar.inactiveBackground": "#f9e64f99",
"titleBar.inactiveForeground": "#15202b99"
},
"peacock.color": "#f9e64f"
}
} }

View File

@ -35,6 +35,7 @@ ALLOWED_HOSTS = ["127.0.0.1", "192.168.1.187", "192.168.1.23"]
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
'jet.dashboard',
'jet', 'jet',
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.auth', 'django.contrib.auth',

View File

@ -25,6 +25,7 @@ urlpatterns = [
# url(r'^$', view=TemplateView.as_view(template_name='main_api/home.html')), # url(r'^$', view=TemplateView.as_view(template_name='main_api/home.html')),
path('', views.index, name='index'), path('', views.index, name='index'),
path('jet/', include('jet.urls', 'jet')), path('jet/', include('jet.urls', 'jet')),
path('jet/dashboard', include('jet.dashboard.urls', 'jet-dashboard')),
path('bills/', include('bills.urls')), path('bills/', include('bills.urls')),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
] ]

View File

@ -4,7 +4,7 @@ from django.db import models
class Bill(models.Model): class Bill(models.Model):
name = models.CharField(max_length=64, verbose_name='Name') name = models.CharField(max_length=64, verbose_name='Name')
type = models.CharField(max_length=64, verbose_name="Type") type = models.CharField(max_length=64, verbose_name="Type")
due = models.DateField('due_date') due = models.DateField(verbose_name="Due Date")
amount = models.FloatField(default='00.00') amount = models.FloatField(default='00.00')
is_paid = models.BooleanField(default=False, verbose_name="Paid") is_paid = models.BooleanField(default=False, verbose_name="Paid")
paid_date = models.DateField('paid_date',null=True, blank=True) paid_date = models.DateField('paid_date',null=True, blank=True)