connectedin\perfis\urls.py
from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
url(r'^$', 'perfis.views.index'),
url(r'^perfis$','perfis.views.exibir' )
)
connectedin\perfis\views.py
from django.shortcuts import render
def index(request):
return render(request, 'index.html')
def exibir(request):
return render(request, 'perfil.html')
connectedin\perfis\templates\perfis.html
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<title>ConnectedIn</title>
</head>
<body>
<h1>Detalhe Perfil</h1>
</body>
</html>
da esse bug na página, quanto tento acessar http://localhost:8000/perfis
Page not found (404)
Request Method: GET
Request URL: http://localhost:8000/perfis
Using the URLconf defined in connectedin.urls, Django tried these URL patterns, in this order:
^admin/
^$
The current URL, perfis, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.