add coming soon template

This commit is contained in:
Sanj 2011-07-07 21:30:11 +05:30
parent 76e6b68ada
commit 55b80e4b2e
3 changed files with 27 additions and 1 deletions

View File

@ -33,6 +33,10 @@ def help(request):
context = RequestContext(request, {})
return render_to_response("main/help.html", context)
def comingsoon(request):
context = RequestContext(request, {})
return render_to_response("main/comingsoon.html", context)
def debug(request):
# imageVersion = Image.VERSION
# sysPath = ",".join(sys.path)

View File

@ -0,0 +1,21 @@
{% extends 'main_base.html' %}
{% block title %}
Home
{% endblock %}
{% block extra_head %}
<link rel="stylesheet" href="/static/css/main/home.css" />
{% endblock %}
{% block pageTitle %}
{% endblock %}
{% block content %}
<div class="centerSentence">
Welcome to <a href="contact">Edgwareroad.org</a>.
Here you can <a href="publish">create</a> a publication, <a href="browse">browse</a> existing publications, or <a href="archive">view an archive</a> of materials generated on the Edgware Road and beyond.
</div>
{% endblock %}

View File

@ -37,7 +37,8 @@ urlpatterns = patterns('',
(r'^sandbox/account$', login),
(r'^sandbox/logout$', logout),
(r'^$', 'django.views.generic.simple.redirect_to', {'url': '/slider/'}),
# (r'^$', 'django.views.generic.simple.redirect_to', {'url': '/slider/'}),
(r'^$', 'main.views.comingsoon'),
(r'^robots.txt(?P<path>)$', 'django.views.static.serve', { 'document_root' : "/home/itf/soc/edgware/static/txt/robots.txt" } ),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation: