Создал файл: views.py
С кодом:
# -*- coding: utf-8 -*- from django.http import HttpResponse def hello(request): return HttpResponse("Здравствуй, Мир")
from django.conf.urls.defaults import * from mysite.views import hello urlpatterns = patterns('', ('^hello/$', hello), )
Там стандартно:
It worked!
Congratulations on your first Django-powered page.
Of course, you haven't actually done any work yet. Here's what to do next:
If you plan to use a database, edit the DATABASES setting in mysite/settings.py.
Start your first app by running python manage.py startapp .
You're seeing this message because you have DEBUG = True in your Django settings file and you haven't configured any URLs. Get to work!
Думал проблема в Python пути, выполнил команду
>>>import sys
>>> print sys.path
Результат:
['C:\\Python26\\Lib\\idlelib', 'C:\\WINDOWS\\system32\\python26.zip', 'C:\\Python26\\DLLs', 'C:\\Python26\\lib', 'C:\\Python26\\lib\\plat-win', 'C:\\Python26\\lib\\lib-tk', 'C:\\Python26', 'C:\\Python26\\lib\\site-packages']
Что не так, уже сломал чердак?