Mercurial > public > sg101
changeset 19:aa2b41c5212b
First steps at scratching out a home page. Will need to develop some template tags now to fill it out.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 19 Apr 2009 20:10:00 +0000 |
parents | 5c03abb0cd0a |
children | c0d0779b266f |
files | gpp/templates/base.html gpp/templates/home.html gpp/urls.py gpp/views.py media/css/base.css |
diffstat | 5 files changed, 46 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/templates/base.html Sun Apr 19 18:36:26 2009 +0000 +++ b/gpp/templates/base.html Sun Apr 19 20:10:00 2009 +0000 @@ -48,7 +48,7 @@ <div id="content-secondary" class="span-4 append-1"> <ul class="nav-left"> - <li><a href="{% url news-index_page page=1 %}">Home</a></li> + <li><a href="{% url home %}">Home</a></li> <li><a href="{% url news-index_page page=1 %}">News</a></li> <li><a href="{% url gcalendar-index %}">Calendar</a></li> <li><a href="{% url contact-form %}">Contact</a></li> @@ -74,7 +74,11 @@ <div id="footer" class="span-24"> - <p>Website © 2008 by Brian Neal</p> + <p> + TODO: Should put links to various policies down here. Additional navigation could go here. + Add a colophon. + </p> + <p>SurfGuitar101.com © 2009 by Brian Neal</p> </div> {% if debug %}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/templates/home.html Sun Apr 19 20:10:00 2009 +0000 @@ -0,0 +1,23 @@ +{% extends 'base.html' %} +{% block title %}Home{% endblock %} +{% block content %} +<h2>Welcome to SurfGuitar101!</h2> +<p>You are looking at a test version of the new SurfGuitar101 website, dubbed <strong>SG101 2.0</strong>. +All major functionality is here except for the forums (which are still in development). +The purpose of this test site is to test the new site software, to get feedback from the user base, and +to develop a better theme (colors, logos, layout, etc.) for the site. All bugs and feature requests are being tracked at +<a href="http://code.surfguitar101.com">code.surfguitar101.com</a>. Existing SG101 members are encouraged +to sign up here and give the new site a test drive. Any and all feedback is appreciated! Thank you for +helping to make this site be the best home on the web for fans and friends of surf music! +</p> +<p>Remember that this is a test site, and not everything is going to work. Nothing here is +permanent. The site (content, user accounts, etc.) may be wiped at any time while we fix bugs and add features. +Also, I hope that the look and feel of this site can be greatly improved to something really cool! I'll need +lots of help for this aspect, as I'm more of a coder than a designer.</p> +<div class="span-9"> + Some stuff. +</div> +<div class="span-10 last"> + Some more stuff. +</div> +{% endblock %}
--- a/gpp/urls.py Sun Apr 19 18:36:26 2009 +0000 +++ b/gpp/urls.py Sun Apr 19 20:10:00 2009 +0000 @@ -10,6 +10,7 @@ } urlpatterns = patterns('', + url(r'^$', 'views.home', name='home'), (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), (r'^accounts/', include('accounts.urls')),
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/views.py Sun Apr 19 20:10:00 2009 +0000 @@ -0,0 +1,15 @@ +""" +This file contains views that don't belong to any specific application. +In particular, the home page view. +""" +from django.shortcuts import render_to_response +from django.template import RequestContext + + +def home(request): + """ + The home page view of the site. + """ + return render_to_response('home.html', { + }, + context_instance = RequestContext(request))