From 8f6f226654fc20a38c08aa07366d3e744c6d8cb6 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Fri, 3 Dec 2021 12:08:26 -0500 Subject: [PATCH] Add Django Jet! --- .vscode/settings.json | 22 ++++++++++++++++++++++ api/api/settings.py | 3 ++- api/api/urls.py | 1 + requirements.txt | Bin 144 -> 374 bytes 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d4d8687 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,22 @@ +{ + "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 bf56579..a376ac9 100644 --- a/api/api/settings.py +++ b/api/api/settings.py @@ -29,12 +29,13 @@ SECRET_KEY = env("SECRET_KEY", default='django-insecure-7uajhmbt^@)mklk1ur=slkmn # SECURITY WARNING: don't run with debug turned on in production! DEBUG = env("DEBUG") -ALLOWED_HOSTS = ["192.168.1.187", "192.168.1.23"] +ALLOWED_HOSTS = ["127.0.0.1", "192.168.1.187", "192.168.1.23"] # Application definition INSTALLED_APPS = [ + 'jet', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', diff --git a/api/api/urls.py b/api/api/urls.py index 5d1b74e..4cac83e 100644 --- a/api/api/urls.py +++ b/api/api/urls.py @@ -24,6 +24,7 @@ urlpatterns = [ # url(r'^$', view=TemplateView.as_view(template_name='bills/home.html')), # url(r'^$', view=TemplateView.as_view(template_name='main_api/home.html')), path('', views.index, name='index'), + path('jet/', include('jet.urls', 'jet')), path('bills/', include('bills.urls')), path('admin/', admin.site.urls), ] diff --git a/requirements.txt b/requirements.txt index 655a1ccd7601826a737faac29e9b230e7ff5abf8..a14c4cfc9ff46da4436d32f7bb7a8261b4d3f7da 100644 GIT binary patch literal 374 zcmZvY+X})k5Jcx$@KY*HDxwd*`6EG7@!FUaZy&GDZc|YxCD1TuXJ_($IV5bcLxe|- zCBF(2OnD5(7-5Ay9L{8#uWG3-RNefj1t$yMJz6CVsgh?tKzce}b!)>v+1io))_>oc zDg2)YC8EGePYL)l^7ne7t literal 144 zcmX|(!4AS85Jd0$FK!Cu&>r^Yj}To5S^;;7rhdI(8gDa`H_vNK!hvW;hX&3!pJN%# z;tJPaJ8^y`DVb=(r8CDG($-jrtod)k+Jg88zl+?5#8`Atb-$DvZAWqKY~9