При попытке загрузить сайт появляется сообщение об ошибке «Страница не найдена». (127.0.0.1:8000/catalog /)
Вот мой urls.py
urlpatterns = patterns('',
(r'^catalog/$', 'preview.views.home'),
# Example:
# (r'^ecomstore/', include('ecomstore.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
)
А в превью пакета мои views.py
from django.shortcuts import render_to_response
# Create your views here.
def home(request):
return render_to_response("index.html")
"index.html" находится в папке ecomstore / templates, в этом каталоге установлена переменная TEMPLATE_DIRS.
Странно, у меня нет трассировки отладки, но для переменной DEBUG установлено значение true
Кто-нибудь знает, что не так?