5
Я следую учебник YouTube, и я получаю сообщение об ошибке ...запрашиваемый URL не найден на этом сервере Джанго
получает ошибку
The requested URL /hello was not found on this server.
сайта/urls.py
urlpatterns = patterns('',
url(r'^hello/$', article.views.hello),
...
)
статьи/views.py
from django.shortcuts import render
from django.http import HttpResponse
def hello(request):
name = 'mike'
html = '<html><body> sup %s </body></html> ' %name
return HttpRequest(html)
сайт/settings.py
INSTALLED_APPS = (
...
'article',
)
Все еще получаю ошибку! – bezzoon
Ничего себе. localhost/hello был проблемой .. Я должен использовать localhost: 8000/hello .... aaahhh – bezzoon