Permalink
Browse files

Adicionado o path /layout

Como o index.html foi renomeado para guideline.html, este path foi
adicionado para continuarmos trabalhando no layout.

Signed-off-by: Mailson Lira <mailson@gmail.com>
  • Loading branch information...
1 parent 5d7dd1c commit efb4c7f096192a7113a863aea1460f255856b3b7 @omailson omailson committed Oct 26, 2011
Showing with 5 additions and 1 deletion.
  1. +1 −0 portal/urls.py
  2. +4 −1 portal/views.py
View
1 portal/urls.py
@@ -8,6 +8,7 @@
urlpatterns = patterns('',
# Examples:
url(r'^$', 'portal.views.home', name='home'),
+ url(r'^layout/$', 'portal.views.guideline', name='layout'),
# url(r'^portal/', include('portal.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
View
5 portal/views.py
@@ -2,4 +2,7 @@
from django.template import RequestContext
def home(request):
- return render_to_response('index.html',context_instance = RequestContext(request))
+ return render_to_response('index.html',context_instance = RequestContext(request))
+
+def guideline(request):
+ return render_to_response('guideline.html',context_instance = RequestContext(request))

0 comments on commit efb4c7f

Please sign in to comment.