I'm super beginner with Python
and Django
and unfortunately I'm suffering a lot with urls
. The problem you give is " Página não encontrada (404)
". Here are some excerpts from the code:
urls.py
from django.conf.urls import patterns, include, url
import web.views
urlpatterns = [
#url(r'^$/', 'web.views.home', name='home'),
url(r'^web/', 'views.index'),
]
views.py
from django.shortcuts import render_to_response, render
from django.http import HttpResponseRedirect # Funcao para redirecionar o usuario
#Criar as Views aqui
# pagina inicial do projeto dweb
def index(request):
return render_to_response("index.html")