diff --git a/README.md b/README.md index 3c41b42..b894f7c 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,8 @@ The AHosking.com API 1. Activate environment `.\.env\Scripts\activate` 1. + + +### Third-party + +* https://pypi.org/project/django-3-jet/ \ No newline at end of file diff --git a/api-workspace.code-workspace b/api-workspace.code-workspace index 876a149..b44b8e1 100644 --- a/api-workspace.code-workspace +++ b/api-workspace.code-workspace @@ -4,5 +4,26 @@ "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" + } } \ No newline at end of file diff --git a/api/api/settings.py b/api/api/settings.py index a376ac9..a3b7f99 100644 --- a/api/api/settings.py +++ b/api/api/settings.py @@ -35,6 +35,7 @@ ALLOWED_HOSTS = ["127.0.0.1", "192.168.1.187", "192.168.1.23"] # Application definition INSTALLED_APPS = [ + 'jet.dashboard', 'jet', 'django.contrib.admin', 'django.contrib.auth', diff --git a/api/api/urls.py b/api/api/urls.py index 4cac83e..1b2bdb3 100644 --- a/api/api/urls.py +++ b/api/api/urls.py @@ -25,6 +25,7 @@ urlpatterns = [ # url(r'^$', view=TemplateView.as_view(template_name='main_api/home.html')), path('', views.index, name='index'), path('jet/', include('jet.urls', 'jet')), + path('jet/dashboard', include('jet.dashboard.urls', 'jet-dashboard')), path('bills/', include('bills.urls')), path('admin/', admin.site.urls), ] diff --git a/api/bills/models.py b/api/bills/models.py index 6649c3b..9df1d33 100644 --- a/api/bills/models.py +++ b/api/bills/models.py @@ -4,7 +4,7 @@ from django.db import models class Bill(models.Model): name = models.CharField(max_length=64, verbose_name='Name') 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') is_paid = models.BooleanField(default=False, verbose_name="Paid") paid_date = models.DateField('paid_date',null=True, blank=True)