From 2c4f48a0cbf3559bc4159b8e81d9c6c06cf9a68f Mon Sep 17 00:00:00 2001 From: Dominique Roux Date: Sun, 20 Sep 2015 16:37:54 +0200 Subject: [PATCH] Changed index page The index page is no set to the crowdfounding page. The old index page is now called home. The crowdfounding page is now in the menu on the first place, and the home page second. --- digitalglarus/templates/digitalglarus/base.html | 8 ++++---- .../digitalglarus/{landing.html => letscowork.html} | 0 digitalglarus/urls.py | 3 ++- digitalglarus/views.py | 13 +++++++++++-- 4 files changed, 17 insertions(+), 7 deletions(-) rename digitalglarus/templates/digitalglarus/{landing.html => letscowork.html} (100%) diff --git a/digitalglarus/templates/digitalglarus/base.html b/digitalglarus/templates/digitalglarus/base.html index c67fa324..81152eeb 100644 --- a/digitalglarus/templates/digitalglarus/base.html +++ b/digitalglarus/templates/digitalglarus/base.html @@ -64,7 +64,10 @@ diff --git a/digitalglarus/templates/digitalglarus/landing.html b/digitalglarus/templates/digitalglarus/letscowork.html similarity index 100% rename from digitalglarus/templates/digitalglarus/landing.html rename to digitalglarus/templates/digitalglarus/letscowork.html diff --git a/digitalglarus/urls.py b/digitalglarus/urls.py index ecca23b4..585c6554 100644 --- a/digitalglarus/urls.py +++ b/digitalglarus/urls.py @@ -6,5 +6,6 @@ urlpatterns = [ url(r'^$', views.index, name='index'), url(r'about$', views.about, name='about'), url(r'contact$', views.contact, name='contact'), - url(r'landing$', views.landing, name='landing'), + url(r'letscowork$', views.letscowork, name='letscowork'), + url(r'home$', views.home, name='home'), ] diff --git a/digitalglarus/views.py b/digitalglarus/views.py index f915d800..071fe6b3 100644 --- a/digitalglarus/views.py +++ b/digitalglarus/views.py @@ -23,11 +23,20 @@ def detail(request, message_id): def about(request): return render(request, 'digitalglarus/about.html') +#def index(request): +# return render(request, 'digitalglarus/index.html') +# +#def letscowork(request): +# return render(request, 'digitalglarus/letscowork.html') + def index(request): + return render(request, 'digitalglarus/letscowork.html') + +def home(request): return render(request, 'digitalglarus/index.html') -def landing(request): - return render(request, 'digitalglarus/landing.html') +def letscowork(request): + return render(request, 'digitalglarus/letscowork.html') def contact(request): message = Message(received_date=datetime.datetime.now())