b06daba446
* 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
15 lines
431 B
Python
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))
|