Skip to content

Commit

Permalink
Adicionado o path /layout
Browse files Browse the repository at this point in the history
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
omailson committed Oct 26, 2011
1 parent 5d7dd1c commit efb4c7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions portal/urls.py
Expand Up @@ -8,6 +8,7 @@
urlpatterns = patterns('', urlpatterns = patterns('',
# Examples: # Examples:
url(r'^$', 'portal.views.home', name='home'), url(r'^$', 'portal.views.home', name='home'),
url(r'^layout/$', 'portal.views.guideline', name='layout'),
# url(r'^portal/', include('portal.foo.urls')), # url(r'^portal/', include('portal.foo.urls')),


# Uncomment the admin/doc line below to enable admin documentation: # Uncomment the admin/doc line below to enable admin documentation:
Expand Down
5 changes: 4 additions & 1 deletion portal/views.py
Expand Up @@ -2,4 +2,7 @@
from django.template import RequestContext from django.template import RequestContext


def home(request): 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.