Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing path detection in index method; wasn't working on bluehost for…

… some odd reason
  • Loading branch information...
commit 5021dd29989e06d81c3ebc806457a95966d427e2 1 parent e84f7d3
@anutron authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 frontend_dev/views.py
View
8 frontend_dev/views.py
@@ -36,11 +36,13 @@ def index(request, path=False, content_path=False):
if content_path is False:
content_path = '/welcome'
-
- return render_to_response('index.mako',
+ if path is False:
+ path = request.REQUEST.get('bottom', '/bottom_frame?menu_path=/docs_menu&content_path=' + content_path)
+
+ return render_to_response('index.mako',
{
'title': settings.TITLE_PREFIX,
- 'bottom': path or request.REQUEST.get('bottom', '/bottom_frame?menu_path=/docs_menu&content_path=' + content_path)
+ 'bottom': path
}
)

0 comments on commit 5021dd2

Please sign in to comment.
Something went wrong with that request. Please try again.