diff options
Diffstat (limited to 'app/pages/views.py')
-rw-r--r-- | app/pages/views.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/pages/views.py b/app/pages/views.py new file mode 100644 index 0000000..016c2ed --- /dev/null +++ b/app/pages/views.py @@ -0,0 +1,13 @@ +from django.shortcuts import render_to_response,get_object_or_404 +from django.template import RequestContext +from django.conf import settings + + +from pages.models import Page + +def page(request,slug): + obj = get_object_or_404(Page, slug__exact=slug) + context = { 'object': obj,} + return render_to_response('details/page.html', context, context_instance = RequestContext(request)) + + |