From 064ee4890f88b8eebdc752375fd346835af8d172 Mon Sep 17 00:00:00 2001 From: Shaun Kruger Date: Wed, 6 May 2015 23:36:39 -0600 Subject: [PATCH] Redirect / to /blog/ instead of showing static page. --- mezzapp/settings.py | 2 +- mezzapp/urls.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mezzapp/settings.py b/mezzapp/settings.py index 2901ec6..ab8fe86 100644 --- a/mezzapp/settings.py +++ b/mezzapp/settings.py @@ -310,7 +310,7 @@ ) -LOG_LOCATION = os.environ.get("MEZZAPP_LOG_LOCATION", "/var/log/mezzapp") +LOG_LOCATION = os.environ.get("MEZZAPP_LOG_LOCATION", "/tmp") LOGGING = { 'version': 1, 'disable_existing_loggers': False, diff --git a/mezzapp/urls.py b/mezzapp/urls.py index 5ae70d1..88d1446 100644 --- a/mezzapp/urls.py +++ b/mezzapp/urls.py @@ -3,6 +3,7 @@ from django.conf.urls import patterns, include, url from django.conf.urls.i18n import i18n_patterns from django.contrib import admin +from django.views.generic import RedirectView from mezzanine.core.views import direct_to_template @@ -31,7 +32,7 @@ # one homepage pattern, so if you use a different one, comment this # one out. - url("^$", direct_to_template, {"template": "index.html"}, name="home"), + url("^$", RedirectView.as_view(url='/blog/'), name="home"), # HOMEPAGE AS AN EDITABLE PAGE IN THE PAGE TREE # ---------------------------------------------