Skip to content

Commit

Permalink
Stub template for frontpage
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpengi committed Oct 29, 2011
1 parent 61bd91f commit 1f79e6b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions hicap/membership/views.py
@@ -1 +1,9 @@
# Create your views here.
from django.shortcuts import render_to_response
from django.template import RequestContext

class MemberView(object):
@classmethod
def frontpage(cls, request):
context = {}
return render_to_response("membership/frontpage.html", context, context_instance=RequestContext(request))
1 change: 1 addition & 0 deletions hicap/settings.py
Expand Up @@ -110,6 +110,7 @@
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
os.path.join(BASE_PATH, 'templates'),
)

INSTALLED_APPS = (
Expand Down
7 changes: 7 additions & 0 deletions hicap/templates/membership/frontpage.html
@@ -0,0 +1,7 @@
{% extends "page.html" %}
{% block content %}
<h1>Hello World</h1>
{% endblock %}
{% block sidebar %}
<h2>This is the sidebar</h2>
{% endblock %}
4 changes: 2 additions & 2 deletions hicap/urls.py
@@ -1,11 +1,11 @@
from django.conf.urls.defaults import patterns, include, url
from hicap.membership.views import MemberView

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
# url(r'^$', 'hicap.views.home', name='home'),
# url(r'^hicap/', include('hicap.foo.urls')),
url(r'^$', MemberView.frontpage, name='home'),
url(r'^admin/', include(admin.site.urls)),
)

0 comments on commit 1f79e6b

Please sign in to comment.