diff options
-rw-r--r-- | app/pages/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/pages/views.py b/app/pages/views.py index 016c2ed..f69efaf 100644 --- a/app/pages/views.py +++ b/app/pages/views.py @@ -8,6 +8,7 @@ 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)) + return render_to_response(["details/%s.html" % obj.slug, 'details/page.html'], context, context_instance = RequestContext(request)) + |