From 857bfb4df9cfb56775839def68f05488fdcdd5e1 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Fri, 19 Jun 2015 14:21:37 +0530 Subject: site down --- website/static/css/freelancer.css | 4 +++- website/static/img/ajith.png | Bin 51505 -> 55077 bytes website/static/img/andreas.png | Bin 101333 -> 122718 bytes website/static/img/jarrod.png | Bin 95520 -> 195971 bytes website/templates/base.html | 4 +--- website/templates/down.html | 4 ++++ website/urls.py | 5 +---- website/views.py | 7 +++++++ 8 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 website/templates/down.html (limited to 'website') diff --git a/website/static/css/freelancer.css b/website/static/css/freelancer.css index b130cdc..10b7b7b 100644 --- a/website/static/css/freelancer.css +++ b/website/static/css/freelancer.css @@ -192,7 +192,9 @@ header .intro-text .skills { } section { - padding: 100px 0; + padding: 150px 0; + margin-top: 5%; + margin-bottom: -20%; } section h2 { diff --git a/website/static/img/ajith.png b/website/static/img/ajith.png index 9c7e216..aa7da9f 100644 Binary files a/website/static/img/ajith.png and b/website/static/img/ajith.png differ diff --git a/website/static/img/andreas.png b/website/static/img/andreas.png index a412cf3..5741470 100644 Binary files a/website/static/img/andreas.png and b/website/static/img/andreas.png differ diff --git a/website/static/img/jarrod.png b/website/static/img/jarrod.png index f9b93c4..655dbaf 100644 Binary files a/website/static/img/jarrod.png and b/website/static/img/jarrod.png differ diff --git a/website/templates/base.html b/website/templates/base.html index 3197190..a9c75bc 100644 --- a/website/templates/base.html +++ b/website/templates/base.html @@ -155,9 +155,7 @@
- - -
+
diff --git a/website/templates/down.html b/website/templates/down.html new file mode 100644 index 0000000..c382393 --- /dev/null +++ b/website/templates/down.html @@ -0,0 +1,4 @@ +
+

We are making some changes to the website.

+

We will be back soon. Stay tuned !

+
diff --git a/website/urls.py b/website/urls.py index d0488a6..fcc3156 100644 --- a/website/urls.py +++ b/website/urls.py @@ -3,8 +3,5 @@ from django.conf.urls import patterns, include, url urlpatterns = patterns('', url(r'^$', 'website.views.home', name='home'), - - # ajax urls - # url(r'^ajax/matching-books/$', 'tbc.views.ajax_matching_books', name='AjaxMatchingBooks'), - + url(r'^contact/', 'website.views.contact', name='contact'), ) diff --git a/website/views.py b/website/views.py index 1d5d17b..d36e186 100644 --- a/website/views.py +++ b/website/views.py @@ -8,14 +8,19 @@ from django.core.context_processors import csrf from django.contrib.auth import authenticate, login, logout from django.contrib.admin.models import CHANGE from django.contrib.auth.decorators import login_required +from django.core.mail import send_mail def home(request): + return render_to_response('down.html') + if request.method == "POST": + return HttpResponse("Working") return render_to_response('base.html') def contact(request): context = {} + return HttpResponse("Reached Here") if request.method == "POST": sender_name = request.POST['name'] sender_email = request.POST['email'] @@ -26,3 +31,5 @@ def contact(request): send_mail(subject, message, sender_email, to, fail_silently=True) context['mailsent'] = True return render(request, 'base.html', context) + else: + return HttpResponseRedirect('/') -- cgit