From 36a1915265cbfac603d50b368c662ed3edb5c251 Mon Sep 17 00:00:00 2001 From: Kevin R Date: Wed, 28 Aug 2024 20:15:33 -0400 Subject: [PATCH] front end till person --- server/djangoproj/settings.py | 12 ++++++---- server/djangoproj/urls.py | 1 + server/frontend/static/About.html | 34 ++++------------------------- server/frontend/static/person.png | Bin 138137 -> 0 bytes server/frontend/static/person1.png | Bin 0 -> 22365 bytes server/frontend/static/person2.png | Bin 0 -> 7419 bytes server/frontend/static/person3.png | Bin 0 -> 3930 bytes 7 files changed, 13 insertions(+), 34 deletions(-) delete mode 100644 server/frontend/static/person.png create mode 100644 server/frontend/static/person1.png create mode 100644 server/frontend/static/person2.png create mode 100644 server/frontend/static/person3.png diff --git a/server/djangoproj/settings.py b/server/djangoproj/settings.py index e0b1092a5c..8788e9246f 100644 --- a/server/djangoproj/settings.py +++ b/server/djangoproj/settings.py @@ -28,8 +28,8 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] -CSRF_TRUSTED_ORIGINS = [] +ALLOWED_HOSTS = ['localhost','https://kevinrblas-8000.theianext-0-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai/'] +CSRF_TRUSTED_ORIGINS = ['https://kevinrblas-8000.theianext-0-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai/'] REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [], @@ -61,7 +61,9 @@ TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [ + os.path.join(BASE_DIR,'frontend/static') + ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -134,5 +136,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' -STATICFILES_DIRS = [] +STATICFILES_DIRS = [ + os.path.join(BASE_DIR,'frontend/static') +] diff --git a/server/djangoproj/urls.py b/server/djangoproj/urls.py index 6808da9141..d5df80b677 100644 --- a/server/djangoproj/urls.py +++ b/server/djangoproj/urls.py @@ -21,6 +21,7 @@ urlpatterns = [ path('admin/', admin.site.urls), + path('about/', TemplateView.as_view(template_name="About.html")), path('djangoapp/', include('djangoapp.urls')), path('', TemplateView.as_view(template_name="Home.html")), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) diff --git a/server/frontend/static/About.html b/server/frontend/static/About.html index 484efd960f..f1448e6321 100644 --- a/server/frontend/static/About.html +++ b/server/frontend/static/About.html @@ -1,6 +1,7 @@ - + +