From af4809dcf86c8dae4cffb292c60e23d558d79161 Mon Sep 17 00:00:00 2001 From: itqop Date: Sun, 17 Mar 2024 18:52:49 +0300 Subject: [PATCH] Fix HomePage --- {home1 => home}/__init__.py | 0 {home1 => home}/migrations/0001_initial.py | 0 {home1 => home}/migrations/0002_create_homepage.py | 0 {home1 => home}/migrations/__init__.py | 0 {home1 => home}/models.py | 0 {home1 => home}/static/css/welcome_page.css | 0 {home1 => home}/templates/home/home_page.html | 4 ++-- {home1 => home}/templates/home/welcome_page.html | 0 rumine/settings/base.py | 2 +- rumine/settings/dev.py | 2 +- 10 files changed, 4 insertions(+), 4 deletions(-) rename {home1 => home}/__init__.py (100%) rename {home1 => home}/migrations/0001_initial.py (100%) rename {home1 => home}/migrations/0002_create_homepage.py (100%) rename {home1 => home}/migrations/__init__.py (100%) rename {home1 => home}/models.py (100%) rename {home1 => home}/static/css/welcome_page.css (100%) rename {home1 => home}/templates/home/home_page.html (80%) rename {home1 => home}/templates/home/welcome_page.html (100%) diff --git a/home1/__init__.py b/home/__init__.py similarity index 100% rename from home1/__init__.py rename to home/__init__.py diff --git a/home1/migrations/0001_initial.py b/home/migrations/0001_initial.py similarity index 100% rename from home1/migrations/0001_initial.py rename to home/migrations/0001_initial.py diff --git a/home1/migrations/0002_create_homepage.py b/home/migrations/0002_create_homepage.py similarity index 100% rename from home1/migrations/0002_create_homepage.py rename to home/migrations/0002_create_homepage.py diff --git a/home1/migrations/__init__.py b/home/migrations/__init__.py similarity index 100% rename from home1/migrations/__init__.py rename to home/migrations/__init__.py diff --git a/home1/models.py b/home/models.py similarity index 100% rename from home1/models.py rename to home/models.py diff --git a/home1/static/css/welcome_page.css b/home/static/css/welcome_page.css similarity index 100% rename from home1/static/css/welcome_page.css rename to home/static/css/welcome_page.css diff --git a/home1/templates/home/home_page.html b/home/templates/home/home_page.html similarity index 80% rename from home1/templates/home/home_page.html rename to home/templates/home/home_page.html index db9e9b0..d0412a4 100644 --- a/home1/templates/home/home_page.html +++ b/home/templates/home/home_page.html @@ -8,7 +8,7 @@ {% comment %} Delete the line below if you're just getting started and want to remove the welcome screen! {% endcomment %} - + {% endblock extra_css %} {% block content %} @@ -16,6 +16,6 @@ Delete the line below if you're just getting started and want to remove the welc {% comment %} Delete the line below if you're just getting started and want to remove the welcome screen! {% endcomment %} -{% include 'home/welcome_page.html' %} + {% endblock content %} diff --git a/home1/templates/home/welcome_page.html b/home/templates/home/welcome_page.html similarity index 100% rename from home1/templates/home/welcome_page.html rename to home/templates/home/welcome_page.html diff --git a/rumine/settings/base.py b/rumine/settings/base.py index b03f96f..11b915b 100644 --- a/rumine/settings/base.py +++ b/rumine/settings/base.py @@ -23,7 +23,7 @@ BASE_DIR = os.path.dirname(PROJECT_DIR) # Application definition INSTALLED_APPS = [ - #"home", + "home", "search", "wagtail.contrib.forms", "wagtail.contrib.redirects", diff --git a/rumine/settings/dev.py b/rumine/settings/dev.py index f98644b..61c3c80 100644 --- a/rumine/settings/dev.py +++ b/rumine/settings/dev.py @@ -8,7 +8,7 @@ SECRET_KEY = "django-insecure-opj&3@hcho2s_fr2ivz$6ufbx#zph+sxm)q%j-(i8(clv7qq1l # SECURITY WARNING: define the correct hosts in production! ALLOWED_HOSTS = ["*"] -ALLOWED_HOSTS = ["shop.ru-mine.ru"] +ALLOWED_HOSTS = ["shop.ru-mine.ru", "127.0.0.1"] CSRF_TRUSTED_ORIGINS = ["https://shop.ru-mine.ru"] CSRF_ALLOWED_ORIGINS = ["https://shop.ru-mine.ru"] CORS_ORIGINS_WHITELIST = ["https://shop.ru-mine.ru"]