From 9a2f20c8a2e76dd91d8bc47f9f355c3896fd40ea Mon Sep 17 00:00:00 2001 From: FedeMontero Date: Thu, 3 Oct 2024 17:51:33 -0400 Subject: [PATCH 1/5] Adding temporary changes to Github --- server/djangoproj/settings.py | 8 ++++---- server/djangoproj/urls.py | 2 ++ server/frontend/static/About.html | 7 +++++-- server/frontend/static/contact.html | 27 +++++++++++++++++++++++++++ server/frontend/static/person.png | Bin 138137 -> 222313 bytes server/frontend/static/style.css | 22 ++++++++++++++++++++++ 6 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 server/frontend/static/contact.html diff --git a/server/djangoproj/settings.py b/server/djangoproj/settings.py index e0b1092a5c..ceaeda08a7 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://federicomon2-8000.theianext-0-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai'] +CSRF_TRUSTED_ORIGINS = ['https://federicomon2-8000.theianext-0-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai'] REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': [], @@ -61,7 +61,7 @@ TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [os.path.join(BASE_DIR, 'frontend/static')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -134,5 +134,5 @@ 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..195e7ade9f 100644 --- a/server/djangoproj/urls.py +++ b/server/djangoproj/urls.py @@ -23,4 +23,6 @@ path('admin/', admin.site.urls), path('djangoapp/', include('djangoapp.urls')), path('', TemplateView.as_view(template_name="Home.html")), + path('about/', TemplateView.as_view(template_name="About.html")), + path('contact/', TemplateView.as_view(template_name="contact.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..c23b259bc8 100644 --- a/server/frontend/static/About.html +++ b/server/frontend/static/About.html @@ -1,6 +1,8 @@ - + + +