EDIT:
Good article on Using Django for (mostly) static sites
ORIGINAL:
Django , . , , , , , , , - , .
- WSGI. , HTTP ... . http://wsgi.readthedocs.org/en/latest/frameworks.html
Django . , , , .
INSTALLED_APPS url(r'^admin/'... urls.py. , () , :)
. , . django.contrib.staticfiles.
( ):
from django.http import HttpResponse
import datetime
def current_datetime(request):
now = datetime.datetime.now()
html = "<html><body>It is now %s.</body></html>" % now
return HttpResponse(html)
urls.py URL- :
url(r'^$', 'testapp.views.current_datetime'),
or
url(r'^da-time/?$', 'testapp.views.current_datetime'),
python manage.py runserver .
, ORM, - Django, , , . response_headers = [('Content-type', 'text/plain')], , , . , , , .. .