symposion_app/symposion/cms/views.py
Luke Hatcher b06daba446 Merge branch 'master' into cms-features
* master:
  added BSD license
  Update master
  use django-forms-bootstrap
  fixed account links on homepage
  fixed staticfiles settings
  removed homepage use of ifsetting_tag
  updated urls
  updated templates
  updated imports to reflect new layout
  updated imports to reflect new layout
  updated settings
  updated manage.py
  updated requirements to 1.4 / DUA and latest versions
  updated project layout for 1.4 (without content changes)

Conflicts:
	requirements/base.txt
	symposion/settings.py
	symposion_project/urls.py
2012-07-10 15:35:30 -04:00

15 lines
431 B
Python

from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from cms.models import Page
def page(request, slug):
page = get_object_or_404(Page, path=slug)
siblings = page.get_siblings(include_self=True)
return render_to_response("cms/page_detail.html", {
"page": page,
"siblings": siblings,
}, context_instance=RequestContext(request))