forked from hicapacity/HackerspaceMembership
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% extends "page.html" %} | ||
{% block content %} | ||
<h1>Hello World</h1> | ||
{% endblock %} | ||
{% block sidebar %} | ||
<h2>This is the sidebar</h2> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)), | ||
) |